import { memo } from 'react'; import { CornerExtract } from '../../../common/components/editor-utils/EditorUtils'; import ErrorBoundary from '../../../common/components/error-boundary/ErrorBoundary'; import ViewNavigationMenu from '../../../common/components/navigation-menu/ViewNavigationMenu'; import ProtectRoute from '../../../common/components/protect-route/ProtectRoute'; import { handleLinks } from '../../../common/utils/linkUtils'; import { cx } from '../../../common/utils/styleUtils'; import { getIsNavigationLocked } from '../../../externals'; import MessageControl from './MessageControl'; import style from '../../../views/editor/Editor.module.scss'; export default memo(MessageControlExport); function MessageControlExport() { const isExtracted = window.location.pathname.includes('/messagecontrol'); const classes = cx([style.content, style.contentColumnLayout]); return (
{!isExtracted && handleLinks('messagecontrol', event)} />} {isExtracted && }
); }