import { ArrowLeft } from "lucide-react"; import { Link, useParams } from "react-router"; import { useDownloadTask } from "~/api/downloads.ts"; import { ErrorState, LoadingState } from "~/components/console/empty-state.tsx"; import { consolePath } from "~/components/console/nav.ts"; import { PageHeader } from "~/components/console/page-header.tsx"; import { DownloadDetail } from "~/components/downloads/download-detail.tsx"; import { Button } from "~/components/ui/button.tsx"; export const meta = () => [{ title: "下载任务 · UHD 媒体自动化控制台" }]; export default function DownloadTaskPage() { const { id = "" } = useParams(); const task = useDownloadTask(id); const t = task.data; return ( <> 下载队列 } />
{task.isPending ? ( ) : task.error ? ( void task.refetch()} /> ) : ( )}
); }