From 645a88e7e35d15cec6106709c42b071bec045e0d Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Wed, 2 Aug 2023 02:52:07 +0800
Subject: ...

---
 FrontEnd/src/migrating/admin/Admin.tsx | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 FrontEnd/src/migrating/admin/Admin.tsx

(limited to 'FrontEnd/src/migrating/admin/Admin.tsx')

diff --git a/FrontEnd/src/migrating/admin/Admin.tsx b/FrontEnd/src/migrating/admin/Admin.tsx
new file mode 100644
index 00000000..986c36b4
--- /dev/null
+++ b/FrontEnd/src/migrating/admin/Admin.tsx
@@ -0,0 +1,27 @@
+import { Route, Routes } from "react-router-dom";
+import { useTranslation } from "react-i18next";
+
+import AdminNav from "./AdminNav";
+import UserAdmin from "./UserAdmin";
+import MoreAdmin from "./MoreAdmin";
+
+import "./index.css";
+
+const Admin: React.FC = () => {
+  useTranslation("admin");
+
+  return (
+    <>
+      <div className="container">
+        <AdminNav className="mt-2" />
+        <Routes>
+          <Route index element={<UserAdmin />} />
+          <Route path="user" element={<UserAdmin />} />
+          <Route path="more" element={<MoreAdmin />} />
+        </Routes>
+      </div>
+    </>
+  );
+};
+
+export default Admin;
-- 
cgit v1.2.3

