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 (
{stepNames[currentStep - 1]}
Step {currentStep} of {totalSteps}
{progressPercentage}%