export default function RegisterServiceWorker({ href }: { href: string }) {
	if ('serviceWorker' in navigator) {
		navigator.serviceWorker.register(href)
	}

	return <></>
}
