/* Root assembly + router — uses window.SITE injected by server */
const Home = () => (
  <main>
    <Hero />
    <Stats />
    <Tentang />
    <Pengurus />
    <Kegiatan />
    <Testimoni />
    <Edukasi />
    <Sosmed />
    <Kontak />
  </main>
);

const App = () => {
  const route = useRoute();
  return (
    <>
      <Nav />
      {route.type === "home" ? <Home /> : <DetailPage route={route} />}
      <Footer />
    </>
  );
};

ReactDOM.createRoot(document.getElementById("root")).render(<App />);
