Cleanup - unused files / unused exports / duplicate exports
[ProtonMail-WebClient.git] / packages / components / containers / app / StandardErrorPage.tsx
blob5cd915a16fd16f0cbaee18e3ec2468bef9097ae4
1 import type { ReactNode } from 'react';
3 import { c } from 'ttag';
5 import useDocumentTitle from '@proton/components/hooks/useDocumentTitle';
7 import GenericError from '../error/GenericError';
9 interface Props {
10     children?: ReactNode;
11     big?: boolean;
14 const StandardErrorPage = ({ children, big }: Props) => {
15     useDocumentTitle(c('Error message').t`Oops, something went wrong`);
17     return (
18         <div className="h-full flex items-center pb-14 overflow-auto">
19             <GenericError big={big}>{children}</GenericError>
20         </div>
21     );
24 export default StandardErrorPage;