import { type NextPage } from "next"; import Image from "next/image"; import Link from "next/link"; import { ChevronDownIcon } from "@heroicons/react/24/outline"; interface DropdownOption { label: string; href: string; } interface NavBarLinkProps { href: string; label: string; dropdown?: DropdownOption[]; } const NavBarLink = ({ href, label, dropdown }: NavBarLinkProps) => { const DropDown = ({ dropdownOptions, }: { dropdownOptions: DropdownOption[]; }) => { const options = dropdownOptions.map((dropdownOption, index) => { return ( {dropdownOption.label} ); }); return (
{options}
); }; return (
  • {label}
    {dropdown ? : <>}
    {dropdown && dropdown.length > 0 ? ( ) : ( <> )}
  • ); }; const NavBar = () => { const resourcesDropDown: DropdownOption[] = [ { label: "search", href: "/resources/search", }, { label: "view all", href: "/resources", }, ]; return ( ); }; const Header: NextPage = () => { return ( <>
    Ear listening

    Center for Auditory Training Resources

    ); }; export default Header;