import { Check } from 'lucide-react'; import { UPLOAD_VIEW_STEPS } from './types'; import type { UploadViewStep } from './types'; interface UploadViewStepperProps { step: UploadViewStep; } export function UploadViewStepper({ step }: UploadViewStepperProps) { return (
{UPLOAD_VIEW_STEPS.map((s, i) => (
= s.num ? 'bg-primary text-primary-foreground' : 'bg-muted text-muted-foreground'}`} > {step > s.num ? : s.num}
= s.num ? 'text-foreground' : 'text-muted-foreground'} font-medium hidden md:block`} > {s.label} {i < UPLOAD_VIEW_STEPS.length - 1 && (
)}
))}
); }