overleaf/services/web/frontend/js/features/settings/components/beta-program-section.tsx

29 lines
756 B
TypeScript
Raw Normal View History

import { useTranslation, Trans } from 'react-i18next'
import { useUserContext } from '../../../shared/context/user-context'
function BetaProgramSection() {
const { t } = useTranslation()
const { betaProgram } = useUserContext()
return (
<>
<h3>{t('sharelatex_beta_program')}</h3>
{betaProgram ? null : (
<p className="small">
<Trans i18nKey="beta_program_benefits">
<span />
</Trans>
</p>
)}
<p className="small">
{betaProgram
? t('beta_program_already_participating')
: t('beta_program_not_participating')}
</p>
<a href="/beta/participate">{t('manage_beta_program_membership')}</a>
</>
)
}
export default BetaProgramSection