interface ProgressBarProps { current: number; total: number; label?: string; } export function ProgressBar({ current, total, label }: ProgressBarProps) { const pct = total > 0 ? Math.round((current / total) * 100) : 0; return (
{label ?? "Processing images…"} {current}/{total} · {pct}%
); }