import { memo } from 'react' import { Modal, ModalClose, Button } from '@janhq/joi' import { useAtomValue, useSetAtom } from 'jotai' import { getImportModelStageAtom, setImportModelStageAtom, } from '@/hooks/useImportModel' const CancelModelImportModal = () => { const importModelStage = useAtomValue(getImportModelStageAtom) const setImportModelStage = useSetAtom(setImportModelStageAtom) const onContinueClick = () => { setImportModelStage('IMPORTING_MODEL') } const onCancelAllClick = () => { setImportModelStage('NONE') } return (

The model import process is not complete. Are you sure you want to cancel all ongoing model imports? This action is irreversible and the progress will be lost.

} /> ) } export default memo(CancelModelImportModal)