diff --git a/components/Footer.jsx b/components/Footer.jsx
index 49d52e8..be91e55 100644
--- a/components/Footer.jsx
+++ b/components/Footer.jsx
@@ -1,5 +1,6 @@
import FooterColumn from "./FooterColumn";
import Image from "next/image";
+import Logo from "./Logo";
import { useState, useRef } from "react";
export default function Footer({ entityTitle, logoSrc, footerItems, socials }) {
@@ -98,13 +99,7 @@ export default function Footer({ entityTitle, logoSrc, footerItems, socials }) {
-
+
{`All rights reserved. © ${entityTitle} 2022`}
diff --git a/components/Logo.jsx b/components/Logo.jsx
new file mode 100644
index 0000000..e312d06
--- /dev/null
+++ b/components/Logo.jsx
@@ -0,0 +1,17 @@
+export default function Logo({ logoSrc, entityTitle }) {
+ return logoSrc ? (
+
+ ) : (
+
+
+ {entityTitle}
+
+
+ );
+}
diff --git a/components/MobileNavbar.jsx b/components/MobileNavbar.jsx
index 6360e8f..122e09a 100644
--- a/components/MobileNavbar.jsx
+++ b/components/MobileNavbar.jsx
@@ -1,6 +1,7 @@
import MobileNavigationItem from "./MobileNavigationItem";
import { signIn, signOut } from "next-auth/react";
import Link from "next/link";
+import Logo from "./Logo";
export default function MobileNavbar({
entityTitle,
@@ -31,21 +32,7 @@ export default function MobileNavbar({
onClick={() => setMobileMenuIsClicked(!mobileMenuIsClicked)}
>
{" "}
- {logoSrc ? (
-

- ) : (
-
-
- {entityTitle}
-
-
- )}
+
);
}
diff --git a/components/Navbar.jsx b/components/Navbar.jsx
index 7959f99..da79f4a 100644
--- a/components/Navbar.jsx
+++ b/components/Navbar.jsx
@@ -1,4 +1,5 @@
import NavigationItem from "./NavigationItem";
+import Logo from "./Logo";
import { signIn, signOut } from "next-auth/react";
export default function Navbar({
@@ -11,27 +12,10 @@ export default function Navbar({
mobileMenuIsClicked,
setMobileMenuIsClicked,
}) {
- const [first, last] = [entityTitle?.slice(0, 1), entityTitle?.slice(1)];
-
return (