mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
* Remove `plans-2026-phase-1` from frontend in subscriptions module * Remove `plans-2026-phase-1` from general frontend * Remove empty `AiErrorAssistantPaywall` * Simplify `UpgradeNotification` * Update translations * Fix tests * Remove `OverleafAssistPaywall` * Remove unused locales GitOrigin-RevId: 4cf04bbde134a3f7b778a0695d388f31d9765343
50 lines
1021 B
TypeScript
50 lines
1021 B
TypeScript
import MaterialIcon from '@/shared/components/material-icon'
|
|
import { useTranslation } from 'react-i18next'
|
|
import { memo } from 'react'
|
|
import classNames from 'classnames'
|
|
|
|
function Check() {
|
|
return <MaterialIcon type="check" />
|
|
}
|
|
|
|
function UpgradeBenefits({ className }: { className?: string }) {
|
|
const { t } = useTranslation()
|
|
|
|
return (
|
|
<ul className={classNames('list-unstyled upgrade-benefits', className)}>
|
|
<li>
|
|
<Check />
|
|
|
|
{t('higher_ai_allowance')}
|
|
</li>
|
|
<li>
|
|
<Check />
|
|
|
|
{t('collabs_per_proj_multiple')}
|
|
</li>
|
|
<li>
|
|
<Check />
|
|
|
|
{t('full_doc_history')}
|
|
</li>
|
|
<li>
|
|
<Check />
|
|
|
|
{t('sync_to_dropbox')}
|
|
</li>
|
|
<li>
|
|
<Check />
|
|
|
|
{t('sync_to_github')}
|
|
</li>
|
|
<li>
|
|
<Check />
|
|
|
|
{t('compile_larger_projects')}
|
|
</li>
|
|
</ul>
|
|
)
|
|
}
|
|
|
|
export default memo(UpgradeBenefits)
|