import { observer } from 'mobx-react-lite' import { ViewControllerManager } from '@Controllers/ViewControllerManager' import { AlertDialog, AlertDialogDescription, AlertDialogLabel } from '@reach/alert-dialog' import { useRef } from 'react' import { STRING_DELETE_ACCOUNT_CONFIRMATION } from '@/Constants/Strings' import Button from '@/Components/Button/Button' import { WebApplication } from '@/Application/Application' type Props = { viewControllerManager: ViewControllerManager application: WebApplication } const ConfirmDeleteAccountModal = ({ application, viewControllerManager }: Props) => { function closeDialog() { viewControllerManager.accountMenuController.setDeletingAccount(false) } const cancelRef = useRef(null) return (
Delete account?

{STRING_DELETE_ACCOUNT_CONFIRMATION}

) } ConfirmDeleteAccountModal.displayName = 'ConfirmDeleteAccountModal' const ConfirmDeleteAccountContainer = (props: Props) => { if (!props.viewControllerManager.accountMenuController.deletingAccount) { return null } return } export default observer(ConfirmDeleteAccountContainer)