Merge branch 'feat/inda-383-daily-stat' into 'main'
[ProtonMail-WebClient.git] / applications / drive / src / app / components / modals / ShareLinkModal / ErrorState.tsx
blob45526dc433d6b24adc48df6c6e31359f3f535148
1 import type { PropsWithChildren } from 'react';
3 import { c } from 'ttag';
5 import { Button } from '@proton/atoms';
6 import { Alert, ModalTwoContent, ModalTwoFooter, ModalTwoHeader } from '@proton/components';
8 interface Props {
9     onClose?: () => void;
12 function ErrorState({ children, onClose }: PropsWithChildren<Props>) {
13     return (
14         <>
15             <ModalTwoHeader title={c('Title').t`Manage secure link`} />
16             <ModalTwoContent>
17                 <Alert className="mb-4" type="error">
18                     {children}
19                 </Alert>
20             </ModalTwoContent>
21             <ModalTwoFooter>
22                 <Button onClick={onClose}>{c('Action').t`Done`}</Button>
23             </ModalTwoFooter>
24         </>
25     );
28 export default ErrorState;