import Link from "next/link"; import type { Locale } from "@/i18n/routes"; import { publicPath, defaultLocale } from "@/i18n/routes"; import { getDict } from "@/i18n/dictionaries"; import { LanguageSwitcher } from "./language-switcher"; import { MobileNav } from "./mobile-nav"; import { site } from "@/content/site"; import { CommandPalette } from "./command-palette"; import { CommandBarButton } from "./command-bar-button"; export function SiteHeader({ locale, projects, }: { locale: Locale; projects: Array<{ slug: string; summary: string; category: string; status: string }>; }) { const dict = getDict(locale); const nav = [ { href: publicPath(locale, "about"), label: dict.nav.about }, { href: publicPath(locale, "projects"), label: dict.nav.projects }, { href: publicPath(locale, "contact"), label: dict.nav.contact }, ]; return ( <> e {site.handle} @eldov.win {nav.map((n) => ( {n.label} ))} {locale === defaultLocale ? ( note:{" "} geschäftliche Anfragen bitte an{" "} w-make.com . ) : null} > ); }