function Footer({ onNavigate }) { const { IconButton } = window.ArnelBiscarraDesignSystem_2766cb; const socials = window.SITE_DATA.socials; const [showTop, setShowTop] = React.useState(false); // Real hrefs so these are crawlable/real links (not just onClick divs in // disguise) — preventDefault still routes through navigate() for the // existing smooth-scroll + active-section-highlight behavior. const go = (id) => (e) => { e.preventDefault(); onNavigate(id); }; React.useEffect(() => { const onScroll = () => setShowTop(window.scrollY > 600); window.addEventListener('scroll', onScroll); return () => window.removeEventListener('scroll', onScroll); }, []); return ( {showTop && (
onNavigate('top')}>↑
)}
); } window.Footer = Footer;