import React from 'react';
import { makeStyles } from '@material-ui/core';
import { PageStatus } from './PageStatus';
import { useTranslation } from 'react-i18next';
const useStyles = makeStyles((theme) => ({
    root: {
        marginTop: theme.spacing(4)
    }
}));
export const PageForbiddenRoute = (props) => {
    const { title, statusCode, subheader, message, showButton } = props;
    const classes = useStyles();
    const { t } = useTranslation();
    return (React.createElement("div", { className: classes.root }, React.createElement(PageStatus, { title: title !== null && title !== void 0 ? title : t('Page Forbidden'), statusCode: statusCode !== null && statusCode !== void 0 ? statusCode : '403', subheader: subheader !== null && subheader !== void 0 ? subheader : t('Sorry, you do not have permission to view this page.'), message: message !== null && message !== void 0 ? message : t('Please contact an administrator to get access.'), to: "/", buttonLabel: t('Back to Home Page'), showButton: showButton })));
};
//# sourceMappingURL=PageForbiddenRoute.js.map