ForbiddenPage.tsx 386 B

1234567891011121314151617
  1. import React from 'react';
  2. import DefaultErrorPage from 'next/error';
  3. import { useTranslation } from 'react-i18next';
  4. export const ForbiddenPage = (): JSX.Element => {
  5. const { t } = useTranslation('admin');
  6. const errorMessage = t('forbidden_page.do_not_have_admin_permission');
  7. return (
  8. <>
  9. <DefaultErrorPage statusCode={403} title={errorMessage} />
  10. </>
  11. );
  12. };