--- import clsx from 'clsx'; import { ArrowUpRight } from 'lucide-react'; import Discord from '@/components/icons/Discord'; import GitHub from '@/components/icons/GitHub'; import Search from '@/components/Search'; import { DISCORD_INVITE_URL, GITHUB_REPO_URL } from '@/consts'; import FilmGrain from '../FilmGrain'; import GetStartedLink from './GetStartedLink'; import MobileNav from './MobileNav'; export interface Props { dark?: boolean; class?: string; } type NavLink = { href: string; label: string; matchPath: string | null; external?: boolean; }; const navLinks: NavLink[] = [ { href: '/docs', label: 'Docs', matchPath: '/docs' }, { href: '/blog', label: 'Blog', matchPath: '/blog' }, ]; const currentPath = Astro.url.pathname; const isDocsActive = currentPath.startsWith('/docs'); const otherNavLinks = navLinks.filter((link) => link.href !== '/docs'); const { class: className, dark = false } = Astro.props; ---