A local-first multi-agent app development platform, built on PenguinHarness
/**
* The route switch. The routes themselves are in lib/routes.ts; every one is a full page load
* (each is also a screenshot target), so there are no client-side transitions to manage. The
* framed documents, `app.html` and `lib.html`, are not routes here.
*/
import { FontsPage } from "./pages/fonts";
import { HomePage } from "./pages/home";
import { LibraryPage } from "./pages/library";
import { MissingPage } from "./pages/missing";
import { SurfacePage } from "./pages/surface";
import { routePath } from "./lib/location";
import { parseRoute } from "./lib/routes";
import { GalleryProvider } from "./state";
export function App() {
const route = parseRoute(routePath());
return (
<GalleryProvider canonicalizeUrl>
{route.kind === "surface" ? (
<SurfacePage id={route.id} />
) : route.kind === "topic" ? (
<LibraryPage id={route.id} />
) : route.kind === "fonts" ? (
<FontsPage page={route.page} />
) : route.kind === "missing" ? (
<MissingPage id={route.id} />
) : (
<HomePage />
)}
</GalleryProvider>
);
}