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 { PageHeader } from "~/components/console/page-header.tsx"; import { DownloadDetail } from "~/components/downloads/download-detail.tsx"; import { Button } from "~/components/ui/button.tsx"; export default function DownloadTaskPage() { const { id = "" } = useParams(); const task = useDownloadTask(id); return ( <> 下载与任务 } />
{task.isPending ? ( ) : task.error ? ( void task.refetch()} /> ) : ( )}
); }