import { useCallback, useRef, useState } from 'react' import { BenefitsSection } from './components/BenefitsSection' import { CallbackModal } from './components/CallbackModal' import { EconomicsSection } from './components/EconomicsSection' import { EquipmentSection } from './components/EquipmentSection' import { FormatsSection } from './components/FormatsSection' import { GuestsSection } from './components/GuestsSection' import { Hero } from './components/Hero' import { RequestSection } from './components/RequestSection' import { SiteFooter } from './components/SiteFooter' import { SiteHeader } from './components/SiteHeader' import { WhyExoSection } from './components/WhyExoSection' import { useAnchorScroll } from './hooks/useAnchorScroll' import { useScrolled } from './hooks/useScrollState' import { isWithinBusinessHours } from '../shared/business-hours' export default function App() { const headerRef = useRef(null) const scrolled = useScrolled() useAnchorScroll(headerRef) // null while closed; otherwise whether it was opened outside business hours. const [callback, setCallback] = useState<{ afterHours: boolean } | null>(null) const openCallback = useCallback(() => setCallback({ afterHours: !isWithinBusinessHours() }), []) const closeCallback = useCallback(() => setCallback(null), []) return ( <>
) }