/* Hudson Pay marketing site — router + mount. */ const { Nav, Hero, TrustPartners, Solutions, Infrastructure, Security, WhyHudson, GlobalReach, Contact, Footer } = window.HPParts; const { GetStarted, SignIn, Privacy } = window.HPPages; function Landing({ onPage }) { const scrollTo = (id) => { const el = document.getElementById(id); if (el) el.scrollIntoView({ behavior: "smooth", block: "start" }); }; return (
); } function App() { const [page, setPage] = React.useState("home"); React.useEffect(() => { const s = document.getElementById("hp-scroll"); if (s) s.scrollTop = 0; }, [page]); const onPage = (p) => setPage(p); return (
{page === "home" && } {page === "getstarted" && } {page === "signin" && } {page === "privacy" &&
}
); } ReactDOM.createRoot(document.getElementById("root")).render();