// frontend/components/journey/JourneyTable.tsx — 하단 작업 테이블 (원본 jtable) import type { JourneyRow, JourneyPerson } from "@/lib/types"; const STAR_D = "M12 2l2.9 6.3 6.9.8-5.1 4.7 1.4 6.8L12 18l-6 3.4 1.4-6.8L2.3 9.9l6.9-.8z"; const FALLBACK: Pick = { name: "", initial: "?", color: "var(--card-2)", }; export function JourneyTable({ rows, people }: { rows: JourneyRow[]; people: JourneyPerson[] }) { const by = Object.fromEntries(people.map((p) => [p.id, p])); return ( {rows.map((r) => { const pe = by[r.who] ?? FALLBACK; return ( ); })}
작업 상태 시작 담당
{r.title}
{r.statusLabel} {r.startTime}
{pe.initial}
{pe.name}
); }