misc-section.tsx 753 B

123456789101112131415161718192021222324252627
  1. import { useTranslation } from 'react-i18next'
  2. import { useUserContext } from '../../../shared/context/user-context'
  3. function MiscSection() {
  4. const { t } = useTranslation()
  5. const { betaProgram } = useUserContext()
  6. return (
  7. <>
  8. <h3>{t('sharelatex_beta_program')}</h3>
  9. <p>
  10. {betaProgram
  11. ? t('beta_program_already_participating')
  12. : t('beta_program_benefits')}
  13. </p>
  14. <a href="/beta/participate">{t('manage_beta_program_membership')}</a>
  15. <hr />
  16. <h3>{t('sessions')}</h3>
  17. <a href="/user/sessions">{t('manage_sessions')}</a>
  18. <hr />
  19. <h3>{t('newsletter')}</h3>
  20. <a href="/user/email-preferences">{t('manage_newsletter')}</a>
  21. </>
  22. )
  23. }
  24. export default MiscSection