import { tr } from '../lib/i18n'; export interface InstallPart { kind?: string; name?: string; state?: string; done_gb?: number; total_gb?: number; files_done?: number; files_total?: number } /** * The parts of a download, one line each: the model (with "2/4" when it comes in parts), the picture reader, the engine. A model in several * parts is only downloaded when every line says Done, so a person can see which part is under way instead of one bar that restarts. */ export function DownloadParts({ parts }: { parts: InstallPart[] | undefined }) { if (!parts || parts.length < 2) return null; return