'use client'; import { cn } from '@contractspec/lib.ui-kit-web/ui/utils'; interface DayCalendarProps { totalDays: number; currentDay: number; completedDays: number[]; } export function DayCalendar({ totalDays, currentDay, completedDays, }: DayCalendarProps) { const days = Array.from({ length: totalDays }, (_, i) => i + 1); return (
{days.map((day) => { const isCompleted = completedDays.includes(day); const isCurrent = day === currentDay; const isLocked = day > currentDay; return (
{isCompleted ? ( ) : isLocked ? ( 🔒 ) : ( <> Day {day} )}
); })}
); }