--- import { metaData, API_URL } from "../config"; import { Icon } from "astro-icon/components"; const isLoggedIn = Astro.cookies.get('access_token') || Astro.cookies.get('refresh_token'); const padlockIconSvg = ` `; const externalLinkIconSvg = ` `; const navItems = [ { label: "Home", href: "/" }, { label: "Radio", href: "/radio" }, { label: "Memes", href: "/memes" }, { label: "Lighting", href: "/lighting", auth: true, icon: "padlock" }, { label: "TRip", href: "/TRip", auth: true, icon: "padlock" }, { label: "Status", href: "https://status.boatson.boats", icon: "external" }, { label: "Git", href: "https://kode.boatson.boats", icon: "external" }, ...(isLoggedIn ? [{ label: "Logout", href: "#logout", onclick: "handleLogout()" }] : []), ]; const currentPath = Astro.url.pathname; ---