import type { RefObject } from 'react' import type { StepperV2Step } from '../stepperV2.types' import type { StepperV2TokensType } from '../stepperV2.tokens' import Block from '../../Primitives/Block/Block' import VerticalLineV2 from './VerticalLineV2' type StepsVerticalSubstepRailsProps = { step: StepperV2Step isLast: boolean isExpanded: boolean stepperTokens: StepperV2TokensType verticalLineRef: RefObject } export function StepsVerticalSubstepRails({ step, isLast, isExpanded, stepperTokens, verticalLineRef, }: StepsVerticalSubstepRailsProps) { if (!isExpanded || !step.substeps || step.substeps.length === 0) { return null } return ( <> {step.substeps.map((substep, index) => ( ))} ) }