import React from 'react' import { Modal, ModalPortal, ModalContent, ModalHeader, ModalTitle, ModalFooter, ModalClose, Button, } from '@janhq/uikit' import { atom, useAtom } from 'jotai' export const showDirectoryConfirmModalAtom = atom(false) type Props = { destinationPath: string onUserConfirmed: () => void } const ModalChangeDirectory: React.FC = ({ destinationPath, onUserConfirmed, }) => { const [show, setShow] = useAtom(showDirectoryConfirmModalAtom) return ( Relocate Jan Data Folder

Are you sure you want to relocate Jan data folder to{' '} {destinationPath} ?
A restart is required afterward, and the original folder remains intact.
{isWindows && ( Note that Jan will not erase the new Jan data folder upon future uninstallation. )}

setShow(false)}>
) } export default ModalChangeDirectory