| 1 | import { Badge } from "@/components/ui/badge"; |
| 2 | import { cn } |
| 3 | |
| 4 | export function LabelBadge({ |
| 5 | label, |
| 6 | className, |
| 7 | }: { |
| 8 | label: { |
| 9 | className?: string |
| 10 | }) { |
| 11 | return ( |
| 12 | <Badge |
| 13 | className={cn(" |
| 14 | style={{ |
| 15 | backgroundColor: `#${label |
| 16 | borderColor: `#${label |
| 17 | }} |
| 18 | title={label.description |
| 19 | > |
| 20 | <span |
| 21 | className="size-1.5 rounded-full" |
| 22 | style={{ backgroundColor: |
| 23 | /> |
| 24 | {label.name} |
| 25 | </Badge> |
| 26 | ); |
| 27 | } |