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 ( <>
{props.isLinkSharingDisabled ? t('share_links.link_sharing_is_disabled') : t('Browsing of this page is restricted')}