import { useMe, useSignOut } from "@/util/hooks"; import { Stack, NavLink, ActionIcon } from "@mantine/core"; import { Link, useLocation } from "@remix-run/react"; import { IconBook2, IconLogout, IconMapRoute, IconPlaneDeparture, IconUser, } from "@tabler/icons-react"; export default function Navbar() { const location = useLocation(); const page = location.pathname.split("/")[2]; const me = useMe(); const signOut = useSignOut(); return ( } active={page == null} /> } active={page === "flights"} /> } > } /> signOut()} label="Sign Out" leftSection={} /> ); }