import { Badge } from '@/components/ui/badge';
import type { StatutEntree } from '@/types/business';

const LABELS: Record<StatutEntree, string> = {
    en_attente: 'En attente',
    validee: 'Validée',
    rejetee: 'Rejetée',
};

const VARIANTS: Record<StatutEntree, 'secondary' | 'default' | 'destructive'> =
    {
        en_attente: 'secondary',
        validee: 'default',
        rejetee: 'destructive',
    };

export function StatutEntreeBadge({ statut }: { statut: StatutEntree }) {
    return <Badge variant={VARIANTS[statut]}>{LABELS[statut]}</Badge>;
}
