Initial 1.3.x rework

This commit is contained in:
Sacha Weatherstone
2022-07-26 08:52:23 +10:00
parent ff6019098b
commit a2280ab96e
163 changed files with 6383 additions and 14397 deletions
+22
View File
@@ -0,0 +1,22 @@
import type React from "react";
import { useDevice } from "./core/stores/deviceStore.js";
import { ChannelsPage } from "./pages/Channels/index.js";
import { ConfigPage } from "./pages/Config/index.js";
import { ExtensionsPage } from "./pages/Extensions/Index.js";
import { InfoPage } from "./pages/Info/index.js";
import { MessagesPage } from "./pages/Messages/index.js";
export const PageRouter = (): JSX.Element => {
const { activePage } = useDevice();
return (
<>
{activePage === "messages" && <MessagesPage />}
{/* {activePage === "map" && <MapPage />} */}
{activePage === "extensions" && <ExtensionsPage />}
{activePage === "config" && <ConfigPage />}
{activePage === "channels" && <ChannelsPage />}
{activePage === "info" && <InfoPage />}
</>
);
};