blob: 5fe0897c56dd893182e7c95d8f553e37b347edda [file] [log] [blame]
simon9076a9a2022-11-29 17:13:01 -05001/*
2 * Copyright (C) 2022 Savoir-faire Linux Inc.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Affero General Public License as
6 * published by the Free Software Foundation; either version 3 of the
7 * License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Affero General Public License for more details.
13 *
14 * You should have received a copy of the GNU Affero General Public
15 * License along with this program. If not, see
16 * <https://www.gnu.org/licenses/>.
17 */
18import { Stack, Typography } from '@mui/material';
19import { useTranslation } from 'react-i18next';
20
21export default () => {
22 const { t } = useTranslation();
23
24 // TODO: The UI of this page needs to be improved
25 return (
26 <Stack
27 alignItems="center"
28 justifyContent="center"
29 textAlign="center"
30 spacing={1}
31 paddingX={8}
32 sx={{
33 flexGrow: 1,
34 backgroundColor: 'black',
35 }}
36 >
37 <Typography variant="h1" color="white">
38 {t('permission_denied_title')}
39 </Typography>
40 <Typography variant="h2" color="white">
41 {t('permission_denied_details')}
42 </Typography>
43 </Stack>
44 );
45};