import type { ReactNode } from "react" import { usePageContext } from "vike-react/usePageContext" export function Link({ href, children }: { href: string; children: ReactNode }) { const pageContext = usePageContext() const { urlPathname } = pageContext const isActive = href === "/" ? urlPathname === href : urlPathname.startsWith(href) return ( {children} ) }