mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-05 23:29:00 +02:00
8f2001e477
Prepare editor redesign for beta release GitOrigin-RevId: 584c0303f652640669234bd227780ed4f20b76c0
32 lines
1.0 KiB
TypeScript
32 lines
1.0 KiB
TypeScript
import { memo } from 'react'
|
|
import ForceDisconnected from '@/features/ide-react/components/modals/force-disconnected'
|
|
import { UnsavedDocs } from '@/features/ide-react/components/unsaved-docs/unsaved-docs'
|
|
import SystemMessages from '@/shared/components/system-messages'
|
|
import { IdeRedesignSwitcherModal as IdeRedesignSwitcherModalLabs } from '@/features/ide-redesign/components/switcher-modal/modal'
|
|
import {
|
|
IdeRedesignSwitcherModal as IdeRedesignSwitcherModalBeta,
|
|
IdeRedesignIntroModal,
|
|
} from '@/features/ide-redesign/components/switcher-modal/beta-modal'
|
|
import { isNewEditorInBeta } from '@/features/ide-redesign/utils/new-editor-utils'
|
|
|
|
export const Modals = memo(() => {
|
|
const newEditorBeta = isNewEditorInBeta()
|
|
|
|
return (
|
|
<>
|
|
<ForceDisconnected />
|
|
<UnsavedDocs />
|
|
<SystemMessages />
|
|
{newEditorBeta ? (
|
|
<>
|
|
<IdeRedesignIntroModal />
|
|
<IdeRedesignSwitcherModalBeta />
|
|
</>
|
|
) : (
|
|
<IdeRedesignSwitcherModalLabs />
|
|
)}
|
|
</>
|
|
)
|
|
})
|
|
Modals.displayName = 'Modals'
|