"use client"; import { useState } from "react"; import AuthModal from "@components/AuthModal"; import { usePathname } from "next/navigation"; import Link from "next/link"; import Image from "next/image"; import { useMemo } from "react"; import { FaRegUserCircle } from "react-icons/fa"; function NavbarButton({ name, href, dropdownItems }: { name: string; href: string; dropdownItems?: string[] }) { const pathname = usePathname(); const isActive = dropdownItems ? dropdownItems.some((item) => pathname === `/${item.toLowerCase().replace(" ", "-")}`) : pathname === href; return ( ); } export default function Navbar() { const navOptions = useMemo(() => ["Earthquakes", "Observatories", "Warehouse", "Shop"], []); // const navOptions = useMemo(() => ["Earthquakes"], []); const aboutDropdown = ["Contact Us", "Our Mission", "The Team"]; // { label: "Our Mission", path: "/our-mission" }, // { label: "The Team", path: "/the-team" }, // { label: "Contact Us", path: "/contact-us" }] const [isModalOpen, setIsModalOpen] = useState(false); return (