diff --git a/components/layout/footer-menu.tsx b/components/layout/footer-menu.tsx deleted file mode 100644 index c5cd61035..000000000 --- a/components/layout/footer-menu.tsx +++ /dev/null @@ -1,46 +0,0 @@ -'use client'; - -import clsx from 'clsx'; -import { Menu } from 'lib/types'; -import Link from 'next/link'; -import { usePathname } from 'next/navigation'; -import { useEffect, useState } from 'react'; - -export function FooterMenuItem({ item }: { item: Menu }) { - const pathname = usePathname(); - const [active, setActive] = useState(pathname === item.path); - - useEffect(() => { - setActive(pathname === item.path); - }, [pathname, item.path]); - - return ( -
  • - - {item.title} - -
  • - ); -} - -export default function FooterMenu({ menu }: { menu: Menu[] }) { - if (!menu.length) return null; - - return ( - - ); -} diff --git a/components/layout/footer.tsx b/components/layout/footer.tsx index 4ca6ad928..dba9e2b52 100644 --- a/components/layout/footer.tsx +++ b/components/layout/footer.tsx @@ -7,7 +7,6 @@ const { COMPANY_NAME, SITE_NAME } = process.env; export default async function Footer() { const currentYear = new Date().getFullYear(); const copyrightDate = 2023 + (currentYear > 2023 ? `-${currentYear}` : ''); - const skeleton = 'w-full h-6 animate-pulse rounded bg-neutral-200 dark:bg-neutral-700'; const copyrightName = COMPANY_NAME || SITE_NAME || ''; return (