diff --git a/src/components/NavBar.tsx b/src/components/NavBar.tsx
new file mode 100644
index 0000000..3a9ce9d
--- /dev/null
+++ b/src/components/NavBar.tsx
@@ -0,0 +1,34 @@
+import { Flex, FlexProps } from "@chakra-ui/react";
+
+export interface NavBarProps extends FlexProps {}
+
+export const NavBar = ({ children, ...props }: NavBarProps) => {
+ return (
+
+ {children}
+
+ );
+};
diff --git a/src/layout/TopBar/Mobile.tsx b/src/layout/TopBar/Mobile.tsx
index e8c0e0c..9f57a25 100644
--- a/src/layout/TopBar/Mobile.tsx
+++ b/src/layout/TopBar/Mobile.tsx
@@ -21,6 +21,7 @@ import { IoChevronDown, IoChevronUp } from "react-icons/io5";
import { useRouter } from "next/router";
import { trpc } from "@util/trpc";
import { DarkModeButton } from "@component/DarkModeButton";
+import { NavBar } from "@component/NavBar";
export const MobileTopBar = () => {
const user = trpc.me.me.useQuery().data;
@@ -33,16 +34,7 @@ export const MobileTopBar = () => {
};
return (
-
+
@@ -153,6 +145,6 @@ export const MobileTopBar = () => {
)}
-
+
);
};
diff --git a/src/layout/TopBar/index.tsx b/src/layout/TopBar/index.tsx
index 2abc2bb..c615f1a 100644
--- a/src/layout/TopBar/index.tsx
+++ b/src/layout/TopBar/index.tsx
@@ -9,6 +9,7 @@ import TextInput from "@component/TextInput";
import DropdownButton from "@component/DropdownButton";
import { useRouter } from "next/router";
import { DarkModeButton } from "@component/DarkModeButton";
+import { NavBar } from "@component/NavBar";
export interface NavigationItems {
text: string;
@@ -44,15 +45,7 @@ export const TopBar = () => {
const router = useRouter();
return (
-
+
@@ -132,6 +125,6 @@ export const TopBar = () => {
-
+
);
};
diff --git a/src/layout/index.tsx b/src/layout/index.tsx
index 7f43b24..b0ddbbb 100644
--- a/src/layout/index.tsx
+++ b/src/layout/index.tsx
@@ -13,7 +13,7 @@ const Layout = ({ children }: PropsWithChildren) => {
<>