import { Upload, Loader2 } from "lucide-react"; interface ProgressCardProps { active: boolean; phase: "uploading" | "processing" | "complete"; label: string; stage?: string; percent: number; elapsed: number; } export function ProgressCard({ active, phase, label, stage, percent, elapsed, }: ProgressCardProps) { if (!active) return null; const icon = phase === "uploading" ? ( ) : ( ); const sublabel = [stage, `${elapsed}s`].filter(Boolean).join(" \u00b7 "); return (
{icon}
{label}
{sublabel}
{Math.round(percent)}%
); }