import Providers from "@/context/providers"; import { BrowserRouter, Routes, Route } from "react-router-dom"; import { useState } from "react"; import Wrapper from "@/components/Wrapper"; import Sidebar from "@/components/Sidebar"; import Header from "@/components/Header"; import Live from "@/pages/Live"; import Export from "@/pages/Export"; import Storage from "@/pages/Storage"; import System from "@/pages/System"; import ConfigEditor from "@/pages/ConfigEditor"; import Logs from "@/pages/Logs"; import NoMatch from "@/pages/NoMatch"; import Settings from "@/pages/Settings"; import UIPlayground from "./pages/UIPlayground"; import Events from "./pages/Events"; import { isDesktop } from "react-device-detect"; import Statusbar from "./components/Statusbar"; function App() { const [sheetOpen, setSheetOpen] = useState(false); const toggleNavbar = () => { setSheetOpen((prev) => !prev); }; return (
{isDesktop && }
} /> } /> } /> } /> } /> } /> } /> } /> } /> } />
); } export default App;