import { cn } from '@/lib/utils'; import { useDarkMode } from '@/hooks/useDarkMode'; import { formatCategoryName, getCategoryColorTheme } from '@/lib/skills-utils'; interface CategoryBadgeProps { category: string; className?: string; showDot?: boolean; } /** Category pill — same color system as filter dropdown (dot + tinted badge). */ export function CategoryBadge({ category, className, showDot = true }: CategoryBadgeProps) { const isDark = useDarkMode(); const theme = getCategoryColorTheme(category, isDark); const label = formatCategoryName(category); return ( {showDot && ( )} {label} ); }