import { cn } from '../../lib/cn'; import { Button } from '../../ui/button'; import { Icon } from '../Icon'; import type { IconButtonProps, IconButtonSize, IconButtonVariant } from './IconButton.types'; const containerClass: Record = { primary: 'bg-primary active:bg-primary-700', ghost: 'bg-transparent active:bg-content2', outline: 'border border-border bg-transparent active:bg-content2', danger: 'bg-danger active:bg-danger-600', success: 'bg-success active:bg-success-600', }; const iconColorClass: Record = { primary: 'text-primary-foreground', ghost: 'text-foreground', outline: 'text-foreground', danger: 'text-white', success: 'text-success-foreground', }; const sizeClass: Record = { sm: 'h-9 w-9', md: 'h-11 w-11', lg: 'h-12 w-12', }; const sizeIcon: Record = { sm: 18, md: 22, lg: 26, }; export function IconButton({ icon, variant = 'ghost', size = 'md', disabled = false, className, iconClassName, iconSize, accessibilityLabel, ...props }: IconButtonProps) { return ( ); }