import React from 'react'; import {HookRouter, navigate, usePath, useRoutes} from "hookrouter"; import {Tabs} from "./primitives/Layout"; import {HSColorPicker} from "./primitives/Forms"; import {IconElement} from "./primitives/Elements"; import SettingsPage from "./pages/SettingsPage"; import {LuciferIcon} from "./models/Icons"; const routeObj: HookRouter.RouteObject = { "/": () => (
void (0)}/>
), "/devices": () => (
), "/settings": () => , } const routeList = ["/", "/devices", "/settings"]; const tabNames = ["Lucifer", "Enheter", "Oppsett"]; function App() { const route = useRoutes(routeObj); const path = usePath(); return (
navigate(routeList[i])} large boldIndex={0} /> {route ||
B
}
); } export default App;