import { Badge } from '@/components/ui/badge';
import { LEAD_STATUSES, type LeadStatus } from '@/lib/leads-api';

interface LeadStatusBadgeProps {
  status: LeadStatus;
}

export function LeadStatusBadge({ status }: LeadStatusBadgeProps) {
  const config = LEAD_STATUSES[status] ?? { label: status, variant: 'outline' as const };
  return <Badge variant={config.variant}>{config.label}</Badge>;
}
