dify/web/app/components/datasets/create/stepper/index.tsx
Stephen Zhou a84c2d36a3
style: format with vp fmt (#38803)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-07-12 15:57:46 +00:00

27 lines
701 B
TypeScript

import type { FC } from 'react'
import type { Step } from './step'
import { Fragment } from 'react'
import { StepperStep } from './step'
export type StepperProps = {
steps: Step[]
activeIndex: number
}
export const Stepper: FC<StepperProps> = (props) => {
const { steps, activeIndex } = props
return (
<div className="flex items-center gap-3">
{steps.map((step, index) => {
const isLast = index === steps.length - 1
return (
<Fragment key={index}>
<StepperStep {...step} activeIndex={activeIndex} index={index} />
{!isLast && <div className="h-px w-4 bg-divider-deep" />}
</Fragment>
)
})}
</div>
)
}