import { createSignal, onMount, onCleanup, Show, Suspense } from "solid-js"; import { A } from "@solidjs/router"; import { cn } from "~/lib/utils"; import { Button } from "~/components/ui"; import { useTheme } from "~/lib/theme"; import { useAuth } from "./useAuth"; function ShieldLogo() { return ( ); } function ThemeToggle() { const { toggle, resolved } = useTheme(); return ( } > ); } const navLinks = [ { label: "Features", href: "/features" }, { label: "Pricing", href: "/pricing" }, { label: "Blog", href: "/blog" }, { label: "Dashboard", href: "/dashboard" }, ]; export default function Navbar() { const [mobileOpen, setMobileOpen] = createSignal(false); const [scrolled, setScrolled] = createSignal(false); const auth = useAuth(); onMount(() => { const onScroll = () => { setScrolled(window.scrollY > 8); }; window.addEventListener("scroll", onScroll, { passive: true }); onCleanup(() => window.removeEventListener("scroll", onScroll)); }); return ( ShieldAI {navLinks.map(link => ( {link.label} ))} Sign In Get Started > } > Dashboard setMobileOpen(v => !v)} > } > {navLinks.map(link => ( setMobileOpen(false)} > {link.label} ))} Sign In Get Started > } > Dashboard ); }