{ e.preventDefault(); let url = props.href as string; if (url.startsWith("/")) { Router.go(url); } else { location.href = url; } }} > {@render props.children?.()}