import { Link, useLocation } from "react-router-dom"; import { useAuth } from "../../contexts/AuthContext"; import "./NavPanel.css"; const navLinks = [ { to: "/addresses", label: "Addresses" }, { to: "/alerts", label: "Configure Alerts" }, { to: "/alertevents", label: "Alert Event History" }, ]; export default function NavPanel({ isOpen, onClose }) { const { logout } = useAuth(); const location = useLocation(); const handleNavClick = () => { onClose(); }; const handleLogout = () => { onClose(); logout(); }; return ( <>
> ); }