import { PropsWithChildren, useState } from "react"; import { AppPath, AppRoute, AppRouting } from "../../model/routing"; interface WithRoutingProps { path?: AppPath; } export function WithRouting({ children, path, }: PropsWithChildren) { const [route, setRoute] = useState({ path: path || AppPath.Home }); return ( {children} ); }