From 93dfe2be64e8658839bcfe5356adf35f8cde7075 Mon Sep 17 00:00:00 2001
From: Nicolas James <Eele1Ephe7uZahRie@tutanota.com>
Date: Thu, 13 Feb 2025 18:04:18 +1100
Subject: initial commit

---
 src/web/components/app/App.jsx | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 src/web/components/app/App.jsx

(limited to 'src/web/components/app/App.jsx')

diff --git a/src/web/components/app/App.jsx b/src/web/components/app/App.jsx
new file mode 100644
index 0000000..ffd2cc7
--- /dev/null
+++ b/src/web/components/app/App.jsx
@@ -0,0 +1,29 @@
+import React from "react";
+import {Route, Routes} from "react-router-dom";
+
+import NavBar from "components/nav_bar/NavBar.jsx";
+import Forum from "components/forum/Forum.jsx";
+import NotFound from "components/not_found/NotFound.jsx";
+import Settings from "components/settings/Settings.jsx";
+import {UserContextProvider} from "contexts/UserContext.jsx";
+import {StateContextProvider} from "contexts/StateContext.jsx";
+
+import styles from "./App.css";
+
+export default function App() {
+    return (
+        <UserContextProvider>
+        <StateContextProvider>
+            <NavBar />
+            <main className={styles.content}>
+                <Routes>
+                    <Route path="/*" element={<Forum />} />
+                    <Route path="/settings/*" element={<Settings />} />
+
+                    <Route path="*" element={<NotFound />} />
+                </Routes>
+            </main>
+        </StateContextProvider>
+        </UserContextProvider>
+    );
+}
-- 
cgit v1.2.3

