beta-program-section.tsx 799 B

123456789101112131415161718192021222324252627
  1. import { Trans, useTranslation } from 'react-i18next'
  2. import { useUserContext } from '../../../shared/context/user-context'
  3. function BetaProgramSection() {
  4. const { t } = useTranslation()
  5. const { betaProgram } = useUserContext()
  6. return (
  7. <>
  8. <h3>{t('sharelatex_beta_program')}</h3>
  9. {betaProgram ? null : (
  10. <p className="small">
  11. {/* eslint-disable-next-line react/jsx-key */}
  12. <Trans i18nKey="beta_program_benefits" components={[<span />]} />
  13. </p>
  14. )}
  15. <p className="small">
  16. {betaProgram
  17. ? t('beta_program_already_participating')
  18. : t('beta_program_not_participating')}
  19. </p>
  20. <a href="/beta/participate">{t('manage_beta_program_membership')}</a>
  21. </>
  22. )
  23. }
  24. export default BetaProgramSection