'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}
) })}
) }