useEffect(() => { document.querySelector('main')?.scrollTo({ top: 0, left: 0, behavior: 'smooth', }); }, [id]);