import { Center, Group, ScrollArea, Table, TableTbody, TableTd, TableTh, TableThead, TableTr, Text, Title, Tooltip, } from "@mantine/core"; import { IconHeartbeat, IconTransform } from "@tabler/icons-react"; import { humanFileSize } from "@homarr/common"; import type { TdarrQueue } from "@homarr/integrations"; import { useI18n } from "@homarr/translation/client"; interface QueuePanelProps { queue: TdarrQueue; } export function QueuePanel(props: QueuePanelProps) { const { queue } = props; const t = useI18n("widget.mediaTranscoding.panel.queue"); if (queue.array.length === 0) { return (
{t("empty")}
); } return ( {t("table.file")} {t("table.size")} {queue.array.map((item) => ( {item.type === "transcode" ? ( ) : ( )} {item.filePath.split("\\").pop()?.split("/").pop() ?? item.filePath} {humanFileSize(item.fileSize)} ))}
); }