import React from 'react'; import { buildClassName } from '../utils/class-util'; interface StepIndicatorsProps { currentStep: number; stepLabels: string[]; } const StepIndicators: React.FC = ({ currentStep, stepLabels }) => { return (
{stepLabels.map((stepName, index) => (
index && 'step-indicators__item--completed' ])}>
{index + 1}
{stepName}
))}
); }; export default StepIndicators;