import React, { type JSX } from 'react'; import { useTranslation } from 'next-i18next'; type Props = { isLinkSharingDisabled?: boolean; }; const ForbiddenPage = React.memo((props: Props): JSX.Element => { const { t } = useTranslation(); return ( <>

{t('Forbidden')}

{props.isLinkSharingDisabled ? t('share_links.link_sharing_is_disabled') : t('Browsing of this page is restricted')}

); }); ForbiddenPage.displayName = 'ForbiddenPage'; export default ForbiddenPage;