--- //Import relevant dependencies import ThemeIcon from '@components/ThemeIcon.astro'; import NavLink from '@components/ui/links/NavLink.astro'; import Authentication from '../misc/Authentication.astro'; import BrandLogo from '@components/BrandLogo.astro'; import LanguagePicker from '@components/ui/LanguagePicker.astro'; import { getLocaleFromPath, localizeHref } from '@/i18n'; import { siteCopy } from '@data/site-copy'; const locale = getLocaleFromPath(Astro.url.pathname); const strings = siteCopy[locale]; const homeUrl = localizeHref('/', locale); type NavItem = { name: string; url: string; }; --- {/* Main header component */} {/* Navigation container */} {/* Brand logo */} {/* Collapse toggle for smaller screens */} {/* ThemeIcon component specifically for smaller screens */} {/* Contains navigation links */} {/* Navigation links container */} {/* Navigation links and Authentication component */} { strings.nav.map((link: NavItem) => ( )) } {/* ThemeIcon component specifically for larger screens */} {/* Theme Appearance script to manage light/dark modes */}