import { useEffect, useRef, useState } from 'react' import { AnimatedSection } from '../../components/AnimatedSection' import { CallToAction } from './CallToAction' import { HomeTab } from './HomeTab' import { HomeMap } from './HomeMap' import { HomeAurora } from './HomeAurora' import { HomeArchitecture } from './HomeArchitecture'; import { HomeDesign } from './HomeDesign'; function LazyHomeMapSection() { const [isVisible, setIsVisible] = useState(false) const containerRef = useRef(null) useEffect(() => { const el = containerRef.current if (!el || isVisible) return const observer = new IntersectionObserver( (entries) => { const [entry] = entries if (entry.isIntersecting) { setIsVisible(true) observer.disconnect() } }, { root: null, rootMargin: '200px 0px', threshold: 0.1, }, ) observer.observe(el) return () => { observer.disconnect() } }, [isVisible]) return (
{isVisible ? ( ) : (

Loading live node map when you scroll here…

)}
) } export default function HomePage() { return (
) }