'use client' import type { PipelineStep } from '@/app/(admin)/ai/ocr-pipeline/types' interface KombiStepperProps { steps: PipelineStep[] currentStep: number onStepClick: (index: number) => void } export function KombiStepper({ steps, currentStep, onStepClick }: KombiStepperProps) { return (
{steps.map((step, index) => { const isActive = index === currentStep const isCompleted = step.status === 'completed' const isFailed = step.status === 'failed' const isSkipped = step.status === 'skipped' const isClickable = (index <= currentStep || isCompleted) && !isSkipped return (
{index > 0 && (
)}
) })}
) }