'use client'; import { BugStatusBadge } from './BugStatusBadge'; import { BUG_SEVERITY_LABEL, BUG_SEVERITY_COLOR } from '@/lib/bug'; import type { Bug } from '@/lib/bug'; interface Props { bug: Bug; testCaseNo?: string; onClick?: () => void; } const PRIORITY_DOT: Record = { P0: 'bg-red-500', P1: 'bg-orange-400', P2: 'bg-blue-400', P3: 'bg-zinc-300', }; export function BugRow({ bug, testCaseNo, onClick }: Props) { return (
{bug.bugNo} {bug.title} {BUG_SEVERITY_LABEL[bug.severity]} {testCaseNo && {testCaseNo}} {bug.assigneeId}
); }