import { motion } from 'motion/react'; import { CheckCircle2, Circle } from 'lucide-react'; import { SectionWrapper } from './ui/SectionWrapper'; import type { RoadmapMonth } from '@/features/report/types/report'; interface RoadmapTimelineProps { months: RoadmapMonth[]; } const monthMeta: Record = { 1: { badge: 'from-[#6C5CE7] to-[#4F1DA1]', accent: 'border-[#6C5CE7]/20' }, 2: { badge: 'from-[#4F1DA1] to-[#021341]', accent: 'border-[#4F1DA1]/20' }, 3: { badge: 'from-[#021341] to-[#0A1128]', accent: 'border-[#021341]/20' }, }; export default function RoadmapTimeline({ months }: RoadmapTimelineProps) { return (
{months.map((month, i) => { const meta = monthMeta[month.month] || monthMeta[1]; return ( {/* Header */}
{month.month}

{month.title}

{month.subtitle}

{/* Divider */}
{/* Task checklist */}
    {month.tasks.map((task, j) => ( {task.completed ? ( ) : ( )} {task.task} ))}
); })}
); }