2024-08-27 05:53:34 -04:00
|
|
|
import { useTranslation } from 'react-i18next'
|
|
|
|
import { sendMB } from '@/infrastructure/event-tracking'
|
2024-10-09 08:13:50 -04:00
|
|
|
import OLButton from '@/features/ui/components/ol/ol-button'
|
|
|
|
import {
|
|
|
|
OLModalBody,
|
|
|
|
OLModalFooter,
|
|
|
|
OLModalHeader,
|
|
|
|
OLModalTitle,
|
|
|
|
} from '@/features/ui/components/ol/ol-modal'
|
2024-08-27 05:53:34 -04:00
|
|
|
|
|
|
|
type ViewOnlyAccessModalContentProps = {
|
|
|
|
handleHide: () => void
|
|
|
|
}
|
|
|
|
|
|
|
|
export default function ViewOnlyAccessModalContent({
|
|
|
|
handleHide,
|
|
|
|
}: ViewOnlyAccessModalContentProps) {
|
|
|
|
const { t } = useTranslation()
|
|
|
|
|
|
|
|
return (
|
|
|
|
<>
|
2024-10-09 08:13:50 -04:00
|
|
|
<OLModalHeader closeButton>
|
|
|
|
<OLModalTitle>{t('view_only_access')}</OLModalTitle>
|
|
|
|
</OLModalHeader>
|
2024-08-27 05:53:34 -04:00
|
|
|
|
2024-10-09 08:13:50 -04:00
|
|
|
<OLModalBody>
|
2024-08-27 05:53:34 -04:00
|
|
|
<p>{t('this_project_already_has_maximum_editors')}</p>
|
|
|
|
<p>{t('please_ask_the_project_owner_to_upgrade_more_editors')}</p>
|
2024-10-09 08:13:50 -04:00
|
|
|
</OLModalBody>
|
|
|
|
<OLModalFooter>
|
|
|
|
<OLButton
|
|
|
|
variant="secondary"
|
2024-08-27 05:53:34 -04:00
|
|
|
href="/blog/changes-to-project-sharing"
|
|
|
|
target="_blank"
|
|
|
|
rel="noreferrer"
|
|
|
|
onClick={() => {
|
|
|
|
sendMB('notification-click', {
|
|
|
|
name: 'link-sharing-collaborator-limit',
|
|
|
|
button: 'learn',
|
|
|
|
})
|
|
|
|
}}
|
|
|
|
>
|
|
|
|
{t('learn_more')}
|
2024-10-09 08:13:50 -04:00
|
|
|
</OLButton>
|
|
|
|
<OLButton
|
|
|
|
variant="primary"
|
2024-08-27 05:53:34 -04:00
|
|
|
onClick={() => {
|
|
|
|
sendMB('notification-click', {
|
|
|
|
name: 'link-sharing-collaborator-limit',
|
|
|
|
button: 'ok',
|
|
|
|
})
|
|
|
|
handleHide()
|
|
|
|
}}
|
|
|
|
>
|
|
|
|
{t('ok')}
|
2024-10-09 08:13:50 -04:00
|
|
|
</OLButton>
|
|
|
|
</OLModalFooter>
|
2024-08-27 05:53:34 -04:00
|
|
|
</>
|
|
|
|
)
|
|
|
|
}
|