'use client'; interface Step { label: string; isCompleted: boolean; isCurrent: boolean; } interface StepIndicatorProps { steps: Step[]; } export default function StepIndicator({ steps }: StepIndicatorProps) { return (
{steps.map((step, index) => (
{step.isCompleted ? ( ) : ( index + 1 )}
{step.label}
{index < steps.length - 1 && (
)}
))}
); }