mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-02 15:53:04 -05:00
e6b681838b
Update Beta Program Copy GitOrigin-RevId: 49afa2ca394bee3d48aeb37bbe909f666ff845a2
28 lines
756 B
TypeScript
28 lines
756 B
TypeScript
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
|