import React from 'react'; import { Check } from 'lucide-react'; interface Step { label: string; description?: string; } interface StepperProps { steps: Step[]; currentStep: number; } const Stepper: React.FC = ({ steps, currentStep }) => { return (
{steps.map((step, index) => { const isCompleted = index < currentStep; const isActive = index === currentStep; const isPending = index > currentStep; return (
{/* Connector Line */} {index !== steps.length - 1 && (
)} {/* Step Circle */}
{isCompleted ? ( ) : ( {index + 1} )}
{/* Labels */}

{step.label}

{step.description && (

{step.description}

)}
); })}
); }; export default Stepper;