import { Badge } from '@/components/ui/badge';
import { formatCrmActivityLabel, type CrmActivityPriority } from '@/features/crm/activity/types';

const PRIORITY_VARIANTS: Record<
  CrmActivityPriority,
  'secondary' | 'outline' | 'default' | 'destructive'
> = {
  low: 'outline',
  normal: 'secondary',
  high: 'default',
  critical: 'destructive'
};

export function ActivityPriorityBadge({ priority }: { priority: CrmActivityPriority }) {
  return <Badge variant={PRIORITY_VARIANTS[priority]}>{formatCrmActivityLabel(priority)}</Badge>;
}
