+
Downloads
+ {active.map((j) => (
+
+
+ {j.label}
+
+ {j.progress ?? 0}% · {fmtBytes(j.done_bytes)}/{fmtBytes(j.total_bytes)}
+ {j.eta_s ? ` · ETA ${fmtEta(j.eta_s)}` : ""}
+
+
+
+
+ ))}
+ {recent.map((j) => (
+
+ {j.label}
+ {j.state}
+
+ ))}
+
+ )
+}
+
function fmtSize(b: number | null) {
if (!b) return "—"
const gb = b / 1024 ** 3
@@ -92,6 +141,7 @@ function Discover() {
const [data, setData] = useState