import { Check, Upload, Eye, Shield } from "lucide-react"; interface ProgressBarProps { currentStep: number; steps: string[]; } export const ProgressBar = ({ currentStep, steps }: ProgressBarProps) => { // Icônes pour chaque étape const getStepIcon = (stepNumber: number, isCompleted: boolean) => { if (isCompleted) { return ; } switch (stepNumber) { case 1: return ; case 2: return ; case 3: return ; default: return stepNumber; } }; return (
{steps.map((step, index) => { const stepNumber = index + 1; const isCompleted = stepNumber < currentStep; const isCurrent = stepNumber === currentStep; return (
{/* Step Circle */}
{getStepIcon(stepNumber, isCompleted)}
{step === "Anonymisation" ? ( <> Anonymisation Anonym. ) : ( step )}
{/* Connector Line */} {index < steps.length - 1 && (
)}
); })}
); };