import { memo } from 'react'; import { ContextMenu } from '../../common/components/context-menu/ContextMenu'; import ErrorBoundary from '../../common/components/error-boundary/ErrorBoundary'; import { useAppMode } from '../../common/stores/appModeStore'; import { handleLinks } from '../../common/utils/linkUtils'; import { cx } from '../../common/utils/styleUtils'; import { Corner } from '../editors/editor-utils/EditorUtils'; import RundownEventEditor from './event-editor/RundownEventEditor'; import RundownWrapper from './RundownWrapper'; import style from './RundownExport.module.scss'; const RundownExport = () => { const isExtracted = window.location.pathname.includes('/rundown'); const appMode = useAppMode((state) => state.mode); const hideSideBar = isExtracted && appMode === 'run'; const classes = cx([style.rundownExport, isExtracted && style.extracted]); return (