import { Check } from "lucide-react"; import { faNum } from "../../lib/formatters"; import { cn } from "../../lib/utils"; export interface StepperProps { current: number; highestVisited: number; completedSteps: Set; onGoto: (step: number) => void; } const STEPS = [ { id: 1, label: "تأمین‌کننده" }, { id: 2, label: "اقلام" }, { id: 3, label: "شرایط پرداخت" }, { id: 4, label: "پروژه" }, { id: 5, label: "بازبینی و ثبت" }, ]; // نوار ۵ مرحله‌ای ویزارد — واکنش‌گرا و ضدشکستگی در موبایل export function Stepper({ current, completedSteps, onGoto }: StepperProps) { return (
{STEPS.map(({ id: step, label }) => { const isCurrent = step === current; const isComplete = completedSteps.has(step); return ( ); })}
); }