const { useState: useStateApp } = React; function App() { const [quoteOpen, setQuoteOpen] = useStateApp(false); const openQuote = () => setQuoteOpen(true); const goTrack = () => { const el = document.getElementById('rastreo'); if (el) window.scrollTo({ top: el.offsetTop - 60, behavior: 'smooth' }); }; return ( <>