import { Button, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, Label, } from "@/ui"; import { UseDownloader } from "react-use-downloader/dist/types"; export const DownloadDialog = (props: Omit) => { const { size, elapsed, percentage, cancel, error, isInProgress } = props; return ( Share link Anyone who has this link will be able to view this.

Download is in {isInProgress ? "in progress" : "stopped"}

Download size in bytes {size}

Elapsed time in seconds {elapsed}

{error &&

possible error {JSON.stringify(error)}

}
); };