mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-31 21:21:03 -04:00
73e8fd115b
[web] Add a new "Overleaf Labs" program, for Galileo GitOrigin-RevId: 8f6c79c37c1719a59bd8405998cc3de2fd29960d
28 lines
746 B
TypeScript
28 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
|