type StepIndicatorProps = { current: number; total: number; isComplete: boolean; }; export default function StepIndicator({ current, total, isComplete }: StepIndicatorProps) { const progress = Math.round(((current + 1) / total) * 100); return (
Progresso
{isComplete ? "Concluído" : `Etapa ${current + 1} de ${total}`}
Avanço
{isComplete ? "100%" : `${progress}%`}