overleaf/services/web/frontend/js/features/settings/components/labs-program-section.tsx
June Kelly 73e8fd115b Merge pull request #9466 from overleaf/jk-add-labs-program-for-galileo
[web] Add a new "Overleaf Labs" program, for Galileo

GitOrigin-RevId: 8f6c79c37c1719a59bd8405998cc3de2fd29960d
2022-09-22 08:03:59 +00:00

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