import { User, Camera, Check } from 'lucide-react'; interface Step { id: number; label: string; icon: React.ElementType; } interface StepIndicatorProps { currentStep: number; steps?: Step[]; } const DEFAULT_STEPS: Step[] = [ { id: 1, label: 'Personal', icon: User }, { id: 2, label: 'Avatar', icon: Camera }, ]; export function StepIndicator({ currentStep, steps = DEFAULT_STEPS }: StepIndicatorProps) { return (
{steps.map((step, index) => { const Icon = step.icon; const isCompleted = step.id < currentStep; const isCurrent = step.id === currentStep; return (
{isCompleted ? ( ) : ( )}
{step.label}
{index < steps.length - 1 && (
)}
); })}
); }