/* @refresh reload */
import "./index.css";

import { Suspense } from "solid-js";
import { render } from "solid-js/web";

import { Router } from "@solidjs/router";
import routes from "~solid-pages";

render(
  () => (
    <Router root={(props) => <Suspense>{props.children}</Suspense>}>
      {routes}
    </Router>
  ),
  document.getElementById("root"),
);
