import { Route, Routes } from "react-router-dom"; import { List, Paper, Typography } from "@mui/material"; import LogPage from "../pages/log"; import HomePage from "../pages/home"; import ProxyPage from "../pages/proxy"; import SettingPage from "../pages/setting"; import ProfilesPage from "../pages/profiles"; import ConnectionsPage from "../pages/connections"; import ListItemLink from "../components/list-item-link"; import Traffic from "../components/traffic"; const Layout = () => { const routers = [ { label: "代理", link: "/proxy", }, { label: "规则", link: "/profiles", }, { label: "连接", link: "/connections", }, { label: "日志", link: "/log", }, { label: "设置", link: "/setting", }, ]; return (
Clash Verge {routers.map((router) => ( {router.label} ))}
} /> } /> } /> } /> } /> } />
); }; export default Layout;