import { Model } from '@janhq/core' import { Modal, Button, ModalClose } from '@janhq/joi' import useAbortDownload from '@/hooks/useAbortDownload' type Props = { model: Model } const ModalCancelDownload: React.FC = ({ model }) => { const { abortDownload } = useAbortDownload() return (
Cancel {/* */} {/* {formatDownloadPercentage(downloadState.percent)} */}
} content={

Are you sure you want to cancel the download of  {/* {downloadState?.modelId}? */}

} /> ) } export default ModalCancelDownload