import { useTranslation } from 'react-i18next' import { linkSharingEnforcementDate } from '../utils/link-sharing' import { sendMB } from '@/infrastructure/event-tracking' import OLButton from '@/features/ui/components/ol/ol-button' import { OLModalBody, OLModalFooter, OLModalHeader, OLModalTitle, } from '@/features/ui/components/ol/ol-modal' type EditorOverLimitModalContentProps = { handleHide: () => void } export default function EditorOverLimitModalContent({ handleHide, }: EditorOverLimitModalContentProps) { const { t } = useTranslation() return ( <> {t('do_you_need_edit_access')} {t('this_project_has_more_than_max_collabs', { linkSharingDate: linkSharingEnforcementDate, })} {t('to_keep_edit_access')} { sendMB('notification-click', { name: 'link-sharing-collaborator-limit', button: 'learn', }) }} > {t('learn_more')} { sendMB('notification-click', { name: 'link-sharing-collaborator-limit', button: 'ok', }) handleHide() }} > {t('ok')} > ) }
{t('this_project_has_more_than_max_collabs', { linkSharingDate: linkSharingEnforcementDate, })}
{t('to_keep_edit_access')}