|
|
@@ -8,11 +8,17 @@ import { HorizontalToggler } from '@/features/ide-react/components/resize/horizo
|
|
|
import { useTranslation } from 'react-i18next'
|
|
|
import { usePdfPane } from '@/features/ide-react/hooks/use-pdf-pane'
|
|
|
import { useLayoutContext } from '@/shared/context/layout-context'
|
|
|
-import { useState } from 'react'
|
|
|
+import { ElementType, useState } from 'react'
|
|
|
import EditorPanel from './editor-panel'
|
|
|
import { useRailContext } from '../contexts/rail-context'
|
|
|
import HistoryContainer from '@/features/ide-react/components/history-container'
|
|
|
import { DefaultSynctexControl } from '@/features/pdf-preview/components/detach-synctex-control'
|
|
|
+import importOverleafModules from '../../../../macros/import-overleaf-module.macro'
|
|
|
+
|
|
|
+const mainEditorLayoutModalsModules: Array<{
|
|
|
+ import: { default: ElementType }
|
|
|
+ path: string
|
|
|
+}> = importOverleafModules('mainEditorLayoutModals')
|
|
|
|
|
|
export default function MainLayout() {
|
|
|
const [resizing, setResizing] = useState(false)
|
|
|
@@ -111,6 +117,11 @@ export default function MainLayout() {
|
|
|
</Panel>
|
|
|
</PanelGroup>
|
|
|
</div>
|
|
|
+ {mainEditorLayoutModalsModules.map(
|
|
|
+ ({ import: { default: Component }, path }) => (
|
|
|
+ <Component key={path} />
|
|
|
+ )
|
|
|
+ )}
|
|
|
</div>
|
|
|
)
|
|
|
}
|