import { useTranslation } from 'react-i18next' import Notification from '@/shared/components/notification' import { upgradePlan } from '../../../../main/account-upgrade' import { useProjectContext } from '@/shared/context/project-context' import { useUserContext } from '@/shared/context/user-context' import { sendMB } from '@/infrastructure/event-tracking' import StartFreeTrialButton from '@/shared/components/start-free-trial-button' import OLButton from '@/features/ui/components/ol/ol-button' type AccessLevelsChangedProps = { somePendingEditorsResolved: boolean } export default function AccessLevelsChanged({ somePendingEditorsResolved, }: AccessLevelsChangedProps) { const { t } = useTranslation() const { features } = useProjectContext() const user = useUserContext() return (
{t('your_project_exceeded_editor_limit')}

) : (

{t('this_project_exceeded_editor_limit')}{' '} {t('you_can_select_or_invite', { count: features.collaborators, })}

) } action={
{user.allowedFreeTrial ? ( {t('upgrade')} ) : ( { upgradePlan('project-sharing') }} > {t('upgrade')} )} { sendMB('paywall-info-click', { 'paywall-type': 'project-sharing', content: 'blog', variant: 'exceeds', }) }} > {t('read_more')}
} />
) }