import * as React from "react"; import { cn } from "@/lib/utils"; type Variant = "primary" | "outline" | "ghost" | "destructive"; type Size = "sm" | "md"; const variants: Record = { primary: "bg-primary text-primary-foreground hover:opacity-90", outline: "border border-border bg-card text-foreground hover:bg-muted", ghost: "text-foreground hover:bg-muted", destructive: "bg-destructive text-destructive-foreground hover:opacity-90", }; const sizes: Record = { sm: "h-8 px-3 text-xs", md: "h-10 px-4 text-sm", }; export function Button({ variant = "primary", size = "md", className, ...props }: React.ButtonHTMLAttributes & { variant?: Variant; size?: Size; }) { return (