task-ep.1.1
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
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>;
|
||||
}
|
||||
Reference in New Issue
Block a user