import { Link, useLocation } from "react-router-dom"; import { useAuth } from "../contexts/AuthContext"; import "./Navbar.css"; const navLinks = [ { to: "/addresses", label: "Addresses" }, { to: "/alerts", label: "Configure Alerts" }, { to: "/alertevents", label: "Alert Events" }, ]; export default function Navbar() { const { currentUser, logout } = useAuth(); const location = useLocation(); if (!currentUser) return null; return ( ); }