import { Button } from "@pswui/Button"; import { DrawerClose, DrawerContent, DrawerOverlay, DrawerRoot, DrawerTrigger, } from "@pswui/Drawer"; import { Popover, PopoverContent, PopoverTrigger } from "@pswui/Popover"; import { Toaster } from "@pswui/Toast"; import { useEffect, useState } from "react"; import { Link, Outlet, useLocation } from "react-router-dom"; import RouteObject from "./RouteObject"; type Theme = "light" | "dark" | "system"; function ThemeButton() { const [theme, setTheme] = useState( (localStorage.getItem("theme") as Theme) || "system", ); useEffect(() => { document.documentElement.classList.toggle("dark", theme === "dark"); document.documentElement.classList.toggle("system", theme === "system"); localStorage.setItem("theme", theme); }, [theme]); return ( ); } function TopNav() { const location = useLocation(); return ( <> ); } function MainLayout() { return ( <> ); } export default MainLayout;