'use client' import { Badge } from '@/components/ui/badge' import { X } from 'lucide-react' import { cn } from '@/lib/utils' import { LABEL_COLORS } from '@/lib/types' import { useLabels } from '@/context/LabelContext' interface LabelBadgeProps { label: string onRemove?: () => void variant?: 'default' | 'filter' | 'clickable' onClick?: () => void isSelected?: boolean isDisabled?: boolean } export function LabelBadge({ label, onRemove, variant = 'default', onClick, isSelected = false, isDisabled = false, }: LabelBadgeProps) { const { getLabelColor } = useLabels() const colorName = getLabelColor(label) const colorClasses = LABEL_COLORS[colorName] || LABEL_COLORS.gray return ( {label} {onRemove && ( )} ) }