import { useT } from "../i18n";
import { closeUploadBatch, useUploads } from "../uploads";
import { Icon } from "./Icon";
import { formatSize } from "./FileFigure";
/** Progress of running uploads: one box per batch with a bar for the total and one per file. */
export function UploadPanel() {
const t = useT();
const batches = useUploads();
if (!batches.length) return null;
return (