/** Primary action button with press-scale feedback. */ import type { ComponentChildren, JSX } from "preact"; import { Pressable } from "./Pressable"; type Variant = "primary" | "secondary" | "destructive" | "plain"; type ButtonProps = { children: ComponentChildren; variant?: Variant; disabled?: boolean; type?: "button" | "submit"; onClick?: JSX.MouseEventHandler; className?: string; ariaLabel?: string; }; const variantClass: Record = { primary: "btn btn-primary", secondary: "btn btn-secondary", destructive: "btn btn-destructive", plain: "btn btn-plain", }; export function Button({ children, variant = "primary", disabled = false, type = "button", onClick, className = "", ariaLabel, }: ButtonProps) { return ( {children} ); }