simon | 9076a9a | 2022-11-29 17:13:01 -0500 | [diff] [blame] | 1 | /* |
| 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 | */ |
| 18 | import { Stack, Typography } from '@mui/material'; |
| 19 | import { useTranslation } from 'react-i18next'; |
| 20 | |
| 21 | export 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 | }; |