import { ReactNode } from 'react'; import { cn } from '@/lib/utils'; export interface BadgeProps { children: ReactNode; variant?: 'default' | 'primary' | 'success' | 'warning' | 'error' | 'secondary'; size?: 'sm' | 'md' | 'lg'; dot?: boolean; count?: number; className?: string; } /** * Composant Badge pour afficher des labels, compteurs, ou statuts. */ export function Badge({ children, variant = 'default', size = 'md', dot, count, className, }: BadgeProps) { return ( {dot && ( )} {children} {count !== undefined && ( ({count}) )} ); }