overleaf/services/web/frontend/js/features/settings/components/labs-program-section.tsx
Jimmy Domagala-Tang d7863bec37 Merge pull request #19108 from overleaf/jdt-ai-rm-alpha-reqs
Remove Alpha bypass for AI Error Correction

GitOrigin-RevId: d6b93bc2071dbeeb3d67d48197e61abf4d920944
2024-06-28 08:04:57 +00:00

27 lines
673 B
TypeScript

import { useTranslation } from 'react-i18next'
import { useUserContext } from '../../../shared/context/user-context'
function LabsProgramSection() {
const { t } = useTranslation()
const { labsProgram } = useUserContext()
const labsStatusText = labsProgram
? t('youre_a_member_of_overleaf_labs')
: t('get_exclusive_access_to_labs')
const labsRedirectText = labsProgram
? t('view_labs_experiments')
: t('join_overleaf_labs')
return (
<>
<h3>{t('overleaf_labs')}</h3>
<p className="small">{labsStatusText}</p>
<a href="/labs/participate">{labsRedirectText}</a>
<hr />
</>
)
}
export default LabsProgramSection