diff --git a/src/components/sync/SyncProgress.tsx b/src/components/sync/SyncProgress.tsx new file mode 100644 index 0000000..1b54b2b --- /dev/null +++ b/src/components/sync/SyncProgress.tsx @@ -0,0 +1,65 @@ +'use client' + +interface SyncProgressProps { + log: string[] + progress: { current: number; total: number } | null + summary: { created: number; updated: number; deactivated: number; errors: number; status: string } | null +} + +export function SyncProgress({ log, progress, summary }: SyncProgressProps) { + const percent = progress && progress.total > 0 + ? Math.round((progress.current / progress.total) * 100) + : 0 + + return ( +
Démarrage de la synchronisation…
+ )} + {log.map((line, i) => ( ++ {line} +
+ ))} +