import { createHashHistory } from "history"; import { h, VNode } from "preact"; import Router, { route, Route } from "preact-router"; import { useEffect } from "preact/hooks"; import { AccountPage, PublicHistoriesPage, RegistrationPage, } from "./home/index.js"; export function Routing(): VNode { const history = createHashHistory(); return ( ); } function Redirect({ to }: { to: string }): VNode { useEffect(() => { route(to, true); }, []); return
being redirected to {to}
; }