import { type FC, Fragment } from 'react' import type { Step } from './step' import { StepperStep } from './step' export type StepperProps = { steps: Step[] activeIndex: number } export const Stepper: FC = (props) => { const { steps, activeIndex } = props return
{steps.map((step, index) => { const isLast = index === steps.length - 1 return ( {!isLast &&
} ) })}
}