import { Check } from 'lucide-react'; interface WizardStepperProps { currentStep: number; totalSteps: number; stepNames: string[]; } /** * Component: WizardStepper * * Purpose: Displays progress indicator for multi-step wizard * * Features: * - Shows current step and progress percentage * - Mobile-optimized display * - Test IDs for testing */ export function WizardStepper({ currentStep, totalSteps, stepNames }: WizardStepperProps) { const progressPercentage = Math.round((currentStep / totalSteps) * 100); // Use a narrower container for fewer steps to avoid excessive spacing const containerMaxWidth = stepNames.length <= 3 ? 'max-w-xl' : 'max-w-6xl'; return (
{/* Mobile: Current step indicator only */}
{currentStep}

{stepNames[currentStep - 1]}

Step {currentStep} of {totalSteps}

{progressPercentage}%

{/* Progress bar */}
{/* Desktop: Full step indicator */}
{stepNames.map((_, index) => (
{index + 1 < currentStep ? ( ) : ( index + 1 )}
{index < stepNames.length - 1 && (
)}
))}
{stepNames.map((step, index) => ( {step} ))}
); }