'use client' import { Badge } from '@/components/ui/badge' import { X, Sparkles } from 'lucide-react' import { cn } from '@/lib/utils' import { LABEL_COLORS } from '@/lib/types' import { useNotebooks } from '@/context/notebooks-context' interface LabelBadgeProps { label: string type?: 'ai' | 'user' // Optional: if provided, applies AI vs User styling onRemove?: () => void variant?: 'default' | 'filter' | 'clickable' onClick?: () => void isSelected?: boolean isDisabled?: boolean } export function LabelBadge({ label, type, onRemove, variant = 'default', onClick, isSelected = false, isDisabled = false, }: LabelBadgeProps) { const { getLabelColor } = useNotebooks() const colorName = getLabelColor(label) const colorClasses = LABEL_COLORS[colorName] || LABEL_COLORS.gray // AI labels get special Blueprint styling with Sparkles icon const isAI = type === 'ai' return ( {isAI && } {label} {onRemove && ( )} {isAI && ( )} ) }