1 import { c } from 'ttag';
3 import { Button } from '@proton/atoms';
4 import { Alert, ModalTwoContent, ModalTwoFooter, ModalTwoHeader, PrimaryButton } from '@proton/components';
5 import keyAndFileSvg from '@proton/styles/assets/img/illustrations/file-recovery.svg';
8 onRecovery: () => void;
13 const FilesRecoveryState = ({ onRecovery, onClose, recovering }: Props) => {
14 const title = c('Title').t`Restore your files`;
18 <ModalTwoHeader title={c('Title').t`File recovery process`} closeButtonProps={{ disabled: recovering }} />
20 <div className="p-4 flex w-full">
21 <img src={keyAndFileSvg} alt={title} className="w-1/2 m-auto" />
23 <Alert className="my-4">
24 <div>{c('Info').jt`Would you like to restore your files?`}</div>
25 <div>{c('Info').jt`Recovery process might take some time.`}</div>
29 <div className="flex justify-space-between w-full flex-nowrap">
33 className="min-w-custom"
34 style={{ '--min-w-custom': '7em' }}
36 >{c('Action').t`Cancel`}</Button>
39 className="min-w-custom"
40 style={{ '--min-w-custom': '7em' }}
43 {c('Action').t`Start recovering`}
51 export default FilesRecoveryState;