--- import AuthMenu from '../auth/AuthMenu.astro'; const navLinks = [ { href: '/', label: 'Home' }, { href: '/about', label: 'About' }, { href: '/community-content', label: 'Content' }, { href: '/events', label: 'Events' }, { href: '/communities', label: 'Communities' }, ]; const currentPath = Astro.url.pathname; const authErrorCode = Astro.locals.authproto?.errorCode; const authErrorDescription = Astro.locals.authproto?.errorDescription; const authError = authErrorDescription ?? authErrorCode; const isActive = (href: string) => currentPath === href || (href !== '/' && currentPath.startsWith(href)); ---