mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-03 10:13:50 -05:00
29 lines
746 B
TypeScript
29 lines
746 B
TypeScript
|
import { useTranslation, Trans } from 'react-i18next'
|
||
|
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">
|
||
|
<Trans i18nKey="labs_program_benefits">
|
||
|
<span />
|
||
|
</Trans>
|
||
|
</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
|