import type { ItemSummary } from "@workspace/types" import { Badge } from "@workspace/ui/components/badge" import { FIX_LABEL, STATUS_LABEL, words } from "@/lib/format" /** The badges an item shows in the queue and at the top of its page. */ export function ItemBadges({ item }: { item: ItemSummary }) { const t = item.triage return (
{t && {words(t.kind)}} {t && t.area !== "other" && {t.area}} {t && t.platform !== "unknown" && {t.platform}} {STATUS_LABEL[item.status]} {item.fixStatus && ( {FIX_LABEL[item.fixStatus]} )} {item.working && ( working )}
) }