2023-10-19 04:33:26 -04:00
|
|
|
import { Trans, useTranslation } from 'react-i18next'
|
2022-09-21 06:02:37 -04:00
|
|
|
import { useUserContext } from '../../../shared/context/user-context'
|
|
|
|
|
|
|
|
function LabsProgramSection() {
|
|
|
|
const { t } = useTranslation()
|
|
|
|
const { labsProgram } = useUserContext()
|
|
|
|
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<h3>{t('overleaf_labs')}</h3>
|
|
|
|
{labsProgram ? null : (
|
|
|
|
<p className="small">
|
2023-10-19 04:33:26 -04:00
|
|
|
{/* eslint-disable-next-line react/jsx-key */}
|
|
|
|
<Trans i18nKey="labs_program_benefits" components={[<span />]} />
|
2022-09-21 06:02:37 -04:00
|
|
|
</p>
|
|
|
|
)}
|
|
|
|
<p className="small">
|
|
|
|
{labsProgram
|
|
|
|
? t('labs_program_already_participating')
|
|
|
|
: t('labs_program_not_participating')}
|
|
|
|
</p>
|
|
|
|
<a href="/labs/participate">{t('manage_labs_program_membership')}</a>
|
|
|
|
</>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default LabsProgramSection
|