import type { ReactNode } from 'react' import { Button } from '../controls/Button' import { Chip } from './Chip' /** * Display Case — FlowNav * The stepper for multi-step flows: numbered step chips + Prev / Next, grouped * on one bar. Each step is individually addressable (click a chip), mirroring * the flow's `goto` transitions. */ export interface FlowStep { id: string label: ReactNode } export interface FlowNavProps { steps: FlowStep[] activeId: string onSelect?: (id: string) => void } export function FlowNav({ steps, activeId, onSelect }: FlowNavProps) { const idx = steps.findIndex((s) => s.id === activeId) const prev = steps[idx - 1] const next = steps[idx + 1] return (