import type { ButtonHTMLAttributes } from "react"; type ButtonVariant = "primary" | "ghost" | "danger"; type ButtonSize = "sm" | "md"; interface ButtonProps extends ButtonHTMLAttributes { variant?: ButtonVariant; size?: ButtonSize; } const variantClasses: Record = { primary: "bg-accent text-white hover:bg-accent/90", ghost: "border border-border bg-white text-ink hover:bg-paper", danger: "bg-danger text-white hover:bg-danger/90", }; const sizeClasses: Record = { sm: "rounded-sm px-2 py-1 text-xs", md: "rounded-md px-3 py-2 text-sm", }; export function Button({ variant = "primary", size = "md", className = "", type = "button", ...props }: ButtonProps) { return (