2023-01-18 09:38:51 -05:00
|
|
|
import { useTranslation, Trans } from 'react-i18next'
|
2024-09-27 08:20:01 -04:00
|
|
|
import { isSplitTestEnabled } from '@/utils/splitTestUtils'
|
2024-11-04 11:44:46 -05:00
|
|
|
import { AI_STANDALONE_PLAN_CODE } from '../../data/add-on-codes'
|
2023-01-18 09:38:51 -05:00
|
|
|
|
|
|
|
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
|
2024-02-05 10:24:01 -05:00
|
|
|
<a href="/learn/how-to/Overleaf_premium_features" target="_blank" />,
|
2023-01-18 09:38:51 -05:00
|
|
|
]}
|
|
|
|
/>
|
|
|
|
:
|
|
|
|
<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>
|
2024-09-27 08:20:01 -04:00
|
|
|
<a className="btn btn-primary me-1" href="/user/subscription/plans">
|
2023-01-18 09:38:51 -05:00
|
|
|
{t('upgrade_now')}
|
|
|
|
</a>
|
2024-09-27 08:20:01 -04:00
|
|
|
{isSplitTestEnabled('ai-add-on') && (
|
|
|
|
<a
|
|
|
|
className="btn btn-secondary"
|
2024-11-04 11:44:46 -05:00
|
|
|
href={`/user/subscription/new?planCode=${AI_STANDALONE_PLAN_CODE}`}
|
2024-09-27 08:20:01 -04:00
|
|
|
>
|
|
|
|
{t('buy_overleaf_assist')}
|
|
|
|
</a>
|
|
|
|
)}
|
2023-01-18 09:38:51 -05:00
|
|
|
</>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default FreePlan
|