diff --git a/src/components/sync/SyncStepper.tsx b/src/components/sync/SyncStepper.tsx new file mode 100644 index 0000000..2f5761e --- /dev/null +++ b/src/components/sync/SyncStepper.tsx @@ -0,0 +1,46 @@ +'use client' + +const STEPS = [ + { id: 1, label: 'Analyse Sheets' }, + { id: 2, label: 'Aperçu diff' }, + { id: 3, label: 'Confirmation' }, + { id: 4, label: 'Synchronisation' }, +] + +interface SyncStepperProps { + currentStep: number // 1–4 +} + +export function SyncStepper({ currentStep }: SyncStepperProps) { + return ( +
+ {STEPS.map((step, i) => { + const done = currentStep > step.id + const active = currentStep === step.id + return ( +
+ {i > 0 && ( +
+ )} +
+
+ {done ? '✓' : step.id} +
+ + {step.label} + +
+
+ ) + })} +
+ ) +}