import { Fragment } from "react"; import { Check } from "lucide-react"; import { cn } from "~/lib/utils"; export interface WizardStepperProps { currentStep: number; steps: string[]; onStepClick: (n: number) => void; } export function WizardStepper({ currentStep, steps, onStepClick }: WizardStepperProps) { return (
{steps.map((label, i) => { const n = i + 1; const done = n < currentStep; const active = n === currentStep; return ( {i > 0 && (
)} ); })}
{steps.map((label, i) => { const n = i + 1; const done = n < currentStep; const active = n === currentStep; return ( {i > 0 &&
}
); })}
); }