import { forwardRef, type ButtonHTMLAttributes } from 'react' import { cn } from '../../lib/utils' export type ButtonVariant = 'primary' | 'ghost' | 'outline' export type ButtonSize = 'sm' | 'md' | 'lg' | 'icon' export type ButtonProps = ButtonHTMLAttributes & { variant?: ButtonVariant size?: ButtonSize } const variants: Record = { primary: 'bg-accent text-on-accent hover:bg-accent-strong', ghost: 'bg-transparent text-primary hover:bg-primary-soft', outline: 'border border-border bg-surface text-primary hover:bg-primary-soft', } const sizes: Record = { sm: 'h-8 px-3 text-sm', md: 'h-10 px-4 text-sm', // Acciones principales de un flujo en mobile: 48px, cómodo para el pulgar. lg: 'h-12 px-5 text-sm', icon: 'size-9', } export const Button = forwardRef( ({ className, variant = 'ghost', size = 'md', type = 'button', ...props }, ref) => { return (