You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
807 B
22 lines
807 B
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 />}
|
|
</>
|
|
);
|
|
};
|
|
|