From e6a670c67bcb70d487f2e0447a0d56aab00d3a7a Mon Sep 17 00:00:00 2001 From: Mathieu Date: Mon, 8 Jun 2026 22:06:46 +0200 Subject: [PATCH] feat: composant SyncStepper Co-Authored-By: Claude Sonnet 4.6 --- src/components/sync/SyncStepper.tsx | 46 +++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 src/components/sync/SyncStepper.tsx 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} + +
+
+ ) + })} +
+ ) +}