import { For, Match, Show, Switch } from "solid-js"; import { clearUserinfo, useUserinfo } from "../../stores/userinfo.tsx"; import { useNavigate } from "@solidjs/router"; import { useWellKnown } from "../../stores/wellKnown.tsx"; interface MenuItem { label: string; href?: string; children?: MenuItem[]; } export default function Navbar() { const nav: MenuItem[] = [ { label: "Feed", href: "/" }, { label: "Realms", href: "/realms" } ]; const wellKnown = useWellKnown(); const userinfo = useUserinfo(); const navigate = useNavigate(); function logout() { clearUserinfo(); navigate("/auth/login"); } return ( ); }