13 lines
403 B
TypeScript
13 lines
403 B
TypeScript
'use client';
|
|
|
|
import { BUG_STATUS_LABEL, BUG_STATUS_COLOR } from '@/lib/bug';
|
|
import type { BugStatus } from '@/lib/bug';
|
|
|
|
export function BugStatusBadge({ status }: { status: BugStatus }) {
|
|
return (
|
|
<span className={`inline-flex h-5 shrink-0 items-center whitespace-nowrap rounded px-1.5 text-[10px] font-medium ${BUG_STATUS_COLOR[status]}`}>
|
|
{BUG_STATUS_LABEL[status]}
|
|
</span>
|
|
);
|
|
}
|