import { forwardRef } from 'react'; interface ButtonProps extends React.ButtonHTMLAttributes { variant?: 'primary' | 'secondary' | 'danger' | 'ghost'; size?: 'sm' | 'md'; loading?: boolean; } const variantStyles: Record = { primary: 'bg-primary-600 text-white shadow-sm hover:bg-primary-700 focus:ring-primary-500/50', secondary: 'bg-white dark:bg-surface-800 text-surface-700 dark:text-surface-200 border border-surface-200 dark:border-surface-600 hover:bg-surface-50 dark:hover:bg-surface-700 focus:ring-surface-300/50', danger: 'bg-red-600 text-white shadow-sm hover:bg-red-700 focus:ring-red-500/50', ghost: 'text-surface-500 dark:text-surface-400 hover:text-surface-800 dark:hover:text-surface-200 hover:bg-surface-50 dark:hover:bg-surface-700', }; const sizeStyles: Record = { sm: 'px-3 py-1.5 text-xs', md: 'px-4 py-2 text-sm', }; export const Button = forwardRef( ({ variant = 'primary', size = 'md', loading, children, disabled, className = '', ...props }, ref) => { return ( ); }, ); Button.displayName = 'Button';