import { useState } from "react"; import ROUTE_CONSTANTS from "../types/routes.ts"; import { useLocation } from "react-router-dom"; import ShoppingListIcon from "./icons/ShoppingListIcon.tsx"; export default function Navigation() { const [displayHamburgerMenu, setDisplayHamburgerMenu] = useState(false); const location = useLocation(); return ( <> ); } interface HamburgerMenuProps { show: boolean; }; function HamburgerMenu({ show }: HamburgerMenuProps) { return (
); } interface DropdownLinkProps { name: string; url: string; } function DropdownLink({ name, url }: DropdownLinkProps) { return ( {name} ); }; interface NavigationLinkProps { name: string; url: string; current: boolean; } function NavigationLink({ name, url, current }: NavigationLinkProps) { return ( {name} ); } interface IconNavigationLinkProps { icon: React.ReactElement; url: string; } function IconNavigationLink({ icon, url }: IconNavigationLinkProps) { return ( {icon} ); }