--- import type { navLink } from "@interfaces/site-layout.ts"; const items: navLink[] = Astro.props.items; const depth: number = Astro.props.depth ?? 0; const paths: string[] = Astro.props.paths ?? []; const getNavLinkSuffix = (entry: navLink): string => { return "-" + [...paths, entry.path].join("-"); }; const getHrefPath = (entry: navLink): string => { return entry.pubpath ? entry.pubpath : "/" + (paths && paths.length ? [...paths, entry.path].join("/") : entry.path); }; const { pathname } = Astro.url; ---