import cn from '@/utils/classnames' import React from 'react' export type Step = { label: string value: string } type StepIndicatorProps = { currentStep: number steps: Step[] } const StepIndicator = ({ currentStep, steps, }: StepIndicatorProps) => { return (
{steps.map((step, index) => { const isActive = index === currentStep - 1 return (
) })}
) } export default React.memo(StepIndicator)