import React from "react"; interface ProgressDotsProps { total: number; current: number; progress: number; color: string; } export const ProgressDots: React.FC = ({ total, current, progress, color, }) => { const safeProgress = Math.max(0, Math.min(1, progress)); const ringDegrees = safeProgress * 360; return (
{Array.from({ length: total }).map((_, i) => { const isCurrent = i === current; const isPast = i < current; return (
); })}
); };