mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2025-07-31 11:00:06 +02:00

* Add permissions checks for AI assist when trying to buy the addon * more explicit check for DuplicateAddOnError * remove useCapabilities() GitOrigin-RevId: 1979e27410981e2ef020cecc731e228483d3315a
42 lines
1.3 KiB
TypeScript
42 lines
1.3 KiB
TypeScript
import { useTranslation, Trans } from 'react-i18next'
|
|
import WritefullManagedBundleAddOn from '@/features/subscription/components/dashboard/states/active/change-plan/modals/writefull-bundle-management-modal'
|
|
import getMeta from '@/utils/meta'
|
|
|
|
function FreePlan() {
|
|
const { t } = useTranslation()
|
|
const hasAiAssistViaWritefull = getMeta('ol-hasAiAssistViaWritefull')
|
|
|
|
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>
|
|
{hasAiAssistViaWritefull && (
|
|
<>
|
|
<h2 className="h3 fw-bold">{t('add_ons')}</h2>
|
|
<WritefullManagedBundleAddOn />
|
|
</>
|
|
)}
|
|
</>
|
|
)
|
|
}
|
|
|
|
export default FreePlan
|