--- import { mainNav, layerTabs, layers, COMPANY_NAME, type Layer } from "../lib/sections"; interface Props { layer: Layer; } const { layer } = Astro.props; const currentPath = Astro.url.pathname; /** Ein Punkt der Hauptnavigation gilt als aktiv, auch auf seinen Unterseiten. */ const isCurrent = (href: string) => currentPath === href || (href !== "/business" && currentPath.startsWith(`${href}/`)); ---