import { format } from "date-fns"; import { buildProjectBarSegment, projectBarStyle, type ProjectBarSegment, } from "../../planner/projectTimeline"; interface ProjectTimelineRowProps { dayDates: Date[]; startDate: string; endDate: string; name: string; color: string; tentative: boolean; showTentative: boolean; onClick?: () => void; } export function ProjectTimelineRow({ dayDates, startDate, endDate, name, color, tentative, showTentative, onClick, }: ProjectTimelineRowProps) { const totalDays = dayDates.length; const segment = buildProjectBarSegment( dayDates, startDate, endDate, name, tentative, showTentative, ); return (