import { useLayoutContext } from '../../../shared/context/layout-context' import LeftMenuMask from './left-menu-mask' import classNames from 'classnames' import { lazy, memo, Suspense } from 'react' import { FullSizeLoadingSpinner } from '@/shared/components/loading-spinner' import { Offcanvas } from 'react-bootstrap' import { EditorLeftMenuProvider } from './editor-left-menu-context' import withErrorBoundary from '@/infrastructure/error-boundary' import OLNotification from '@/features/ui/components/ol/ol-notification' import { useTranslation } from 'react-i18next' const EditorLeftMenuBody = lazy(() => import('./editor-left-menu-body')) const LazyEditorLeftMenuWithErrorBoundary = withErrorBoundary( () => ( }> ), () => { const { t } = useTranslation() return } ) function EditorLeftMenu() { const { leftMenuShown, setLeftMenuShown } = useLayoutContext() const closeLeftMenu = () => { setLeftMenuShown(false) } return ( {leftMenuShown && } ) } export default memo(EditorLeftMenu)