mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-12 05:15:42 -05:00
9b6f83dfd4
Share modal for React IDE page GitOrigin-RevId: f72f824abdcb5a135c354e3ccc35912b2097673f
64 lines
3.2 KiB
TypeScript
64 lines
3.2 KiB
TypeScript
import { FC } from 'react'
|
|
import { ConnectionProvider } from './connection-context'
|
|
import { IdeReactProvider } from '@/features/ide-react/context/ide-react-context'
|
|
import { LayoutProvider } from '@/shared/context/layout-context'
|
|
import { DetachProvider } from '@/shared/context/detach-context'
|
|
import { ProjectProvider } from '@/shared/context/project-context'
|
|
import { ProjectSettingsProvider } from '@/features/editor-left-menu/context/project-settings-context'
|
|
import { EditorProvider } from '@/shared/context/editor-context'
|
|
import { UserProvider } from '@/shared/context/user-context'
|
|
import { EditorManagerProvider } from '@/features/ide-react/context/editor-manager-context'
|
|
import { FileTreeDataProvider } from '@/shared/context/file-tree-data-context'
|
|
import { DetachCompileProvider } from '@/shared/context/detach-compile-context'
|
|
import { ChatProvider } from '@/features/chat/context/chat-context'
|
|
import { LocalCompileProvider } from '@/shared/context/local-compile-context'
|
|
import { OnlineUsersProvider } from '@/features/ide-react/context/online-users-context'
|
|
import { MetadataProvider } from '@/features/ide-react/context/metadata-context'
|
|
import { ReferencesProvider } from '@/features/ide-react/context/references-context'
|
|
import { SplitTestProvider } from '@/shared/context/split-test-context'
|
|
import { ModalsContextProvider } from '@/features/ide-react/context/modals-context'
|
|
import { FileTreePathProvider } from '@/features/file-tree/contexts/file-tree-path'
|
|
|
|
export const ReactContextRoot: FC = ({ children }) => {
|
|
return (
|
|
<SplitTestProvider>
|
|
<ConnectionProvider>
|
|
<IdeReactProvider>
|
|
<UserProvider>
|
|
<ProjectProvider>
|
|
<FileTreeDataProvider>
|
|
<FileTreePathProvider>
|
|
<ReferencesProvider>
|
|
<DetachProvider>
|
|
<EditorProvider>
|
|
<ProjectSettingsProvider>
|
|
<LayoutProvider>
|
|
<LocalCompileProvider>
|
|
<DetachCompileProvider>
|
|
<ChatProvider>
|
|
<EditorManagerProvider>
|
|
<OnlineUsersProvider>
|
|
<MetadataProvider>
|
|
<ModalsContextProvider>
|
|
{children}
|
|
</ModalsContextProvider>
|
|
</MetadataProvider>
|
|
</OnlineUsersProvider>
|
|
</EditorManagerProvider>
|
|
</ChatProvider>
|
|
</DetachCompileProvider>
|
|
</LocalCompileProvider>
|
|
</LayoutProvider>
|
|
</ProjectSettingsProvider>
|
|
</EditorProvider>
|
|
</DetachProvider>
|
|
</ReferencesProvider>
|
|
</FileTreePathProvider>
|
|
</FileTreeDataProvider>
|
|
</ProjectProvider>
|
|
</UserProvider>
|
|
</IdeReactProvider>
|
|
</ConnectionProvider>
|
|
</SplitTestProvider>
|
|
)
|
|
}
|