-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathApp.tsx
More file actions
39 lines (29 loc) · 1.03 KB
/
App.tsx
File metadata and controls
39 lines (29 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import "@/styles/globals.css"
import { ReactFlowProvider } from "@xyflow/react";
import useAppRoutes from "./routes/app-route";
import { SyncProvider } from "./providers/sync-provider/sync-provider";
import DatabaseProvider from "./providers/database-provider/database-provider";
import DiagramProvider from "./providers/diagram-provider/diagram-provider";
import { ModalProvider } from "./providers/modal-provider/modal-provider";
import DatabaseHotkeysProvider from "./providers/database-hotkeys/database-hotkeys-provider";
function App() {
const appRoutes = useAppRoutes();
return (
<>
<SyncProvider>
<ReactFlowProvider>
<DatabaseProvider>
<DiagramProvider>
<ModalProvider>
<DatabaseHotkeysProvider>
{appRoutes}
</DatabaseHotkeysProvider>
</ModalProvider>
</DiagramProvider>
</DatabaseProvider>
</ReactFlowProvider>
</SyncProvider>
</>
);
}
export default App;