Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

727 B
Raw Blame
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 flex-wrap 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="hidden h-px w-4 bg-divider-deep sm:block" />}
          </Fragment>
        )
      })}
    </div>
  )
}