1 import { c } from 'ttag';
3 import { Button } from '@proton/atoms';
4 import Alert from '@proton/components/components/alert/Alert';
5 import type { ModalProps } from '@proton/components/components/modalTwo/Modal';
6 import Modal from '@proton/components/components/modalTwo/Modal';
7 import ModalContent from '@proton/components/components/modalTwo/ModalContent';
8 import ModalFooter from '@proton/components/components/modalTwo/ModalFooter';
9 import ModalHeader from '@proton/components/components/modalTwo/ModalHeader';
11 interface Props extends ModalProps {
12 onConfirm: () => void;
15 const ConfirmRemovePhoneModal = ({ onConfirm, onClose, ...rest }: Props) => {
17 <Modal onClose={onClose} {...rest}>
18 <ModalHeader title={c('Title').t`Confirm phone number`} />
20 <Alert type="warning">
21 {c('Warning').t`By deleting this phone number, you will no longer be able to recover your account.`}
24 {c('Warning').t`Are you sure you want to delete the phone number?`}
28 <Button onClick={onClose}>{c('Action').t`Cancel`}</Button>
36 {c('Action').t`Confirm`}
43 export default ConfirmRemovePhoneModal;