diff --git a/src/components/layout.js b/src/components/layout.js
index 0b77252..9be2dd5 100644
--- a/src/components/layout.js
+++ b/src/components/layout.js
@@ -19,6 +19,82 @@ const renderSnow = () => {
return date.getMonth() === 11 && date.getDate() > 5
}
+function TopBar({
+ setSidebarOpen,
+ sidebarOpen,
+ closeSideBar,
+ href,
+ unreads,
+ userId,
+}) {
+ return (
+ <>
+
+
+
+
+
+
+
+ {Object.keys(topBarLinks).map((key) => {
+ const item = topBarLinks[key]
+
+ return (
+
+
+ {item.text}
+
+
+ )
+ })}
+
+
+
+ >
+ )
+}
+
+function SideBar({ sidebarOpen, closeSideBar, href, setDonateShowing }) {
+ return sidebarOpen ? (
+ <>
+
+ >
+ ) : null
+}
+
function Donate() {
return (
@@ -165,67 +241,22 @@ export default function Layout({ children, router, globalData }) {
)}
-
-
-
-
-
-
-
- {Object.keys(topBarLinks).map((key) => {
- const item = topBarLinks[key]
-
- return (
-
-
- {item.text}
-
-
- )
- })}
-
-
-
+
- {sidebarOpen ? (
- <>
-
- >
- ) : null}
+
{donateShowing ? (