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 = ["تأمین‌کننده", "اقلام", "شرایط پرداخت", "پروژه", "بازبینی و ثبت"]; // نوار ۵ مرحله‌ای ویزارد — کلیک روی مراحل بازدیدشده مجاز است // مراحل تکمیل‌شده سبز، مرحله‌ی فعلی آبی export function Stepper({ current, completedSteps, onGoto }: StepperProps) { return (
{STEPS.map((label, i) => { const step = i + 1; const isCurrent = step === current; const isComplete = completedSteps.has(step); return ( ); })}
); }