--- const { href, class: className, ...props } = Astro.props; let isActive: boolean; if (href === "/") { isActive = Astro.url.pathname === href; } else { isActive = Astro.url.pathname.startsWith(href); } ---