{(["compact", "default", "comfortable"] as const).map((density) => (
density="{density}"
{
const weekday = new Date(Date.UTC(2026, 8, index + 1)).getUTCDay();
return {
label: new Intl.NumberFormat(locale).format(index + 1),
units: 1,
muted: weekday === 0 || weekday === 6,
};
})}
rows={[
{ id: "design", label: "要件定義", start: 0, end: 6 },
{ id: "build", label: "実装", start: 7, end: 22 },
{ id: "review", label: "レビュー", start: 20, end: 29 },
].map((row) => ({
...row,
startLabel: dayLabel(row.start + 1),
endLabel: dayLabel(row.end + 1),
}))}
/>
))}