import React from 'react'; interface StepIndicatorProps { currentStep: number; highestStep: number; onStepClick: (step: number) => void; t: { title: string; steps: string[]; } } const StepIndicator: React.FC = ({ currentStep, highestStep, onStepClick, t }) => { const steps = t.steps.map((name, index) => ({ id: index + 1, name })); return (

{t.title}

    {steps.map((step) => { const isCompleted = step.id < currentStep; const isActive = step.id === currentStep; const isClickable = step.id <= highestStep; return (
  1. isClickable && onStepClick(step.id)} > {isCompleted ? '✓' : step.id} {step.name}
  2. ) })}
); }; export default StepIndicator;