// Main app const { useState: useStateA } = React; function App() { const [lang, setLang] = useStateA("nl"); useReveal(); const t = (window.CONTENT[lang] || window.CONTENT.nl); const goTo = (id) => (e) => { if (e) e.preventDefault(); const el = document.getElementById(id); if (el) { const top = el.getBoundingClientRect().top + window.scrollY - 70; window.scrollTo({ top, behavior: "smooth" }); } }; return ( <> goTo("aanmelden")()} /> goTo("historie")()} onSecondary={() => goTo("aanmelden")()} />