import { cn } from '@/lib/utils'; type Props = { total: number; current: number; doneCount: number; liveProgress?: number; }; export function ProgressPips({ total, current, doneCount, liveProgress = 0 }: Props) { return (
{Array.from({ length: total }, (_, i) => { const idx = i + 1; const isDone = idx <= doneCount; const isCurrent = idx === current && !isDone; return (
{isCurrent ? (
) : null}
); })}
); }