2022-04-22 09:49:32 -04:00
|
|
|
import { useTranslation } from 'react-i18next'
|
|
|
|
import { useUserContext } from '../../../shared/context/user-context'
|
|
|
|
|
2022-04-26 11:35:35 -04:00
|
|
|
function BetaProgramSection() {
|
2022-04-22 09:49:32 -04:00
|
|
|
const { t } = useTranslation()
|
|
|
|
const { betaProgram } = useUserContext()
|
|
|
|
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<h3>{t('sharelatex_beta_program')}</h3>
|
2022-04-26 11:35:35 -04:00
|
|
|
<p className="small">
|
2022-04-22 09:49:32 -04:00
|
|
|
{betaProgram
|
|
|
|
? t('beta_program_already_participating')
|
|
|
|
: t('beta_program_benefits')}
|
|
|
|
</p>
|
|
|
|
<a href="/beta/participate">{t('manage_beta_program_membership')}</a>
|
|
|
|
</>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
2022-04-26 11:35:35 -04:00
|
|
|
export default BetaProgramSection
|