"use client"; import { motion } from "framer-motion"; import { COLORS, VizFrame } from "./common"; export type PipelineStep = { label: string; detail?: string }; export function Pipeline({ steps, width = 880, height = 220, }: { steps: PipelineStep[]; width?: number; height?: number; }) { const padX = 40; const innerW = width - padX * 2; const stepW = innerW / steps.length; const cy = height / 2; return ( {steps.map((s, i) => { const x = padX + i * stepW + stepW / 2; return ( {String(i + 1).padStart(2, "0")} {s.label} {s.detail ? ( {s.detail} ) : null} {i < steps.length - 1 ? ( ) : null} {i < steps.length - 1 ? ( ) : null} ); })} ); }