import React from 'react'; import { cn } from '../../lib/utils'; import { Check } from 'lucide-react'; interface Step { number: number; title: string; } interface StepIndicatorProps { steps: Step[]; currentStep: number; } const StepIndicator: React.FC = ({ steps, currentStep }) => { return (
{steps.map((step, index) => { const isCompleted = currentStep > step.number; const isCurrent = currentStep === step.number; const isLast = index === steps.length - 1; return (
{/* Circle */}
{isCompleted ? ( ) : ( step.number )}
{/* Title */} {step.title}
{/* Connector Line */} {!isLast && (
)} ); })}
); }; export default StepIndicator;