import { useEffect, useState } from "react"; import { Box, List, Typography } from "@mui/material"; import services from "../services"; import ProxyGroup from "../components/proxy-group"; import type { ProxyGroupItem } from "../services/proxy"; const ProxyPage = () => { const [groups, setGroups] = useState([]); useEffect(() => { // Todo // result cache services.getProxyInfo().then((res) => { setGroups(res.groups); }); }, []); return ( Proxy Groups {groups.map((group) => ( ))} ); }; export default ProxyPage;