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/AdminNav.tsx | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 FrontEnd/src/migrating/admin/AdminNav.tsx

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

diff --git a/FrontEnd/src/migrating/admin/AdminNav.tsx b/FrontEnd/src/migrating/admin/AdminNav.tsx
new file mode 100644
index 00000000..b7385e5c
--- /dev/null
+++ b/FrontEnd/src/migrating/admin/AdminNav.tsx
@@ -0,0 +1,29 @@
+import { useLocation } from "react-router-dom";
+
+import Tabs from "../common/tab/Tabs";
+
+export function AdminNav({ className }: { className?: string }) {
+  const location = useLocation();
+  const name = location.pathname.split("/")[2] ?? "user";
+
+  return (
+    <Tabs
+      className={className}
+      activeTabName={name}
+      tabs={[
+        {
+          name: "user",
+          text: "admin:nav.users",
+          link: "/admin/user",
+        },
+        {
+          name: "more",
+          text: "admin:nav.more",
+          link: "/admin/more",
+        },
+      ]}
+    />
+  );
+}
+
+export default AdminNav;
-- 
cgit v1.2.3

