import { useDownloadProgress } from "@/hooks/useDownloadProgress"; import { useDownloadQueueData } from "@/hooks/useDownloadQueueData"; import { Download, ChevronRight } from "lucide-react"; import { Button } from "@/components/ui/button"; interface DownloadProgressToastProps { onClick: () => void; } export function DownloadProgressToast({ onClick }: DownloadProgressToastProps) { const progress = useDownloadProgress(); const queueInfo = useDownloadQueueData(); const hasActiveDownloads = queueInfo.queue.some(item => item.status === "queued" || item.status === "downloading"); if (!hasActiveDownloads) { return null; } return (
); }