2023-10-19 04:33:26 -04:00
|
|
|
import { Trans, useTranslation } from 'react-i18next'
|
2022-04-22 09:49:32 -04:00
|
|
|
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-07-07 04:01:55 -04:00
|
|
|
{betaProgram ? null : (
|
|
|
|
<p className="small">
|
2023-10-19 04:33:26 -04:00
|
|
|
{/* eslint-disable-next-line react/jsx-key */}
|
|
|
|
<Trans i18nKey="beta_program_benefits" components={[<span />]} />
|
2022-07-07 04:01:55 -04:00
|
|
|
</p>
|
|
|
|
)}
|
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')
|
2022-07-07 04:01:55 -04:00
|
|
|
: t('beta_program_not_participating')}
|
2022-04-22 09:49:32 -04:00
|
|
|
</p>
|
|
|
|
<a href="/beta/participate">{t('manage_beta_program_membership')}</a>
|
|
|
|
</>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
2022-04-26 11:35:35 -04:00
|
|
|
export default BetaProgramSection
|