managed-user-cannot-join.tsx 965 B

12345678910111213141516171819202122232425262728293031
  1. import { Trans, useTranslation } from 'react-i18next'
  2. import Notification from '@/shared/components/notification'
  3. import getMeta from '@/utils/meta'
  4. export default function ManagedUserCannotJoin() {
  5. const { t } = useTranslation()
  6. const currentManagedUserAdminEmail = getMeta(
  7. 'ol-currentManagedUserAdminEmail'
  8. )
  9. return (
  10. <Notification
  11. type="info"
  12. title={t('you_cant_join_this_group_subscription')}
  13. content={
  14. <p>
  15. <Trans
  16. i18nKey="your_account_is_managed_by_admin_cant_join_additional_group"
  17. values={{ admin: currentManagedUserAdminEmail }}
  18. shouldUnescape
  19. tOptions={{ interpolation: { escapeValue: true } }}
  20. components={[
  21. /* eslint-disable-next-line jsx-a11y/anchor-has-content, react/jsx-key */
  22. <a href="/learn/how-to/Understanding_Managed_Overleaf_Accounts" />,
  23. ]}
  24. />
  25. </p>
  26. }
  27. />
  28. )
  29. }