import type { Step } from "@/components/ui/stepper"; import { cn } from "@/lib/utils"; // A piece's stage as Work's pips (app/work/page.tsx): a bar a stage, done in // ink, the current one Signal, the rest seams -- and the stage's word after it. // The phone's stepper (PieceFrame): the four-step stepper is two rows at 390 px // and says no more than the pips do. `na` stages are seams, like the ones not // reached; the stepper's title says why on the desk. // // No `data-step`: the stepper owns that attribute and specs count it. export default function StagePips({ steps, lifecycle, className }: { steps: Step[]; lifecycle?: string; className?: string }) { const current = steps.find((s) => s.state === "current") ?? [...steps].reverse().find((s) => s.state === "done"); return ( {steps.map((s) => (