({
color,
icon,
children
}: {
color: keyof typeof labelStyles;
icon: React.ReactNode;
children: React.ReactNode;
})
| 550 | }; |
| 551 | |
| 552 | function Label({ |
| 553 | color, |
| 554 | icon, |
| 555 | children |
| 556 | }: { |
| 557 | color: keyof typeof labelStyles; |
| 558 | icon: React.ReactNode; |
| 559 | children: React.ReactNode; |
| 560 | }) { |
| 561 | return ( |
| 562 | <span |
| 563 | className={`${labelStyles[color]} text-xs rounded-full border px-2 flex items-center max-w-fit gap-1`}> |
| 564 | {icon} <span className="truncate capitalize">{children}</span> |
| 565 | </span> |
| 566 | ); |
| 567 | } |
| 568 | |
| 569 | const cycleIcon = <RefreshCw aria-hidden="true" className="w-4 h-4 shrink-0" />; |
| 570 | function CycleLabel({cycle}: {cycle: string}) { |
nothing calls this directly
no outgoing calls
no test coverage detected