import { useState } from "react"; import { Link, Outlet, useLocation } from "react-router-dom"; import { Button } from "../components/Button"; type Theme = "light" | "dark"; function ThemeButton() { const [theme, _setTheme] = useState("light"); function setTheme(t: Theme) { _setTheme(t); document.documentElement.classList.toggle("dark", t === "dark"); } return ( ); } function TopNav() { const location = useLocation(); return ( <> ); } function MainLayout() { return ( <> ); } export default MainLayout;