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 (