import useSWR from "swr"; import { Box, List, Typography } from "@mui/material"; import services from "../services"; import ProxyGroup from "../components/proxy-group"; const ProxyPage = () => { const { data } = useSWR("getProxies", services.getProxies); const { groups = [] } = data ?? {}; return ( Proxy Groups {groups.length > 0 && ( {groups.map((group) => ( ))} )} ); }; export default ProxyPage;