mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-04 23:05:56 -05:00
9818912cb7
feat: add all add-ons to price calculation in subs view model GitOrigin-RevId: d03374192d735278c6459fc6341a72d0b0c7c3aa
43 lines
1.3 KiB
TypeScript
43 lines
1.3 KiB
TypeScript
import { useTranslation, Trans } from 'react-i18next'
|
|
import { isSplitTestEnabled } from '@/utils/splitTestUtils'
|
|
import { AI_STANDALONE_PLAN_CODE } from '../../data/add-on-codes'
|
|
|
|
function FreePlan() {
|
|
const { t } = useTranslation()
|
|
|
|
return (
|
|
<>
|
|
<Trans
|
|
i18nKey="on_free_plan_upgrade_to_access_features"
|
|
components={[
|
|
// eslint-disable-next-line react/jsx-key, jsx-a11y/anchor-has-content
|
|
<a href="/learn/how-to/Overleaf_premium_features" target="_blank" />,
|
|
]}
|
|
/>
|
|
:
|
|
<ul>
|
|
<li>{t('invite_more_collabs')}</li>
|
|
<li>{t('realtime_track_changes')}</li>
|
|
<li>{t('full_doc_history')}</li>
|
|
<li>{t('reference_search')}</li>
|
|
<li>{t('reference_sync')}</li>
|
|
<li>{t('dropbox_integration_lowercase')}</li>
|
|
<li>{t('github_integration_lowercase')}</li>
|
|
<li>{t('priority_support')}</li>
|
|
</ul>
|
|
<a className="btn btn-primary me-1" href="/user/subscription/plans">
|
|
{t('upgrade_now')}
|
|
</a>
|
|
{isSplitTestEnabled('ai-add-on') && (
|
|
<a
|
|
className="btn btn-secondary"
|
|
href={`/user/subscription/new?planCode=${AI_STANDALONE_PLAN_CODE}`}
|
|
>
|
|
{t('buy_overleaf_assist')}
|
|
</a>
|
|
)}
|
|
</>
|
|
)
|
|
}
|
|
|
|
export default FreePlan
|