import { DashboardCard } from "@/components/card"; import { NoDataOverlay } from "@/components/noDataOverlay"; import { status, Status, clanStatus } from "@/data/dashboardData"; import { Chip, Divider, List, ListItem, ListItemIcon, ListItemText, } from "@mui/material"; import Link from "next/link"; import React from "react"; const statusColorMap: Record< Status, "default" | "primary" | "secondary" | "error" | "info" | "success" | "warning" > = { online: "info", offline: "error", pending: "default", }; const MAX_OTHERS = 5; export const NetworkOverview = () => { const { self, other } = clanStatus; const firstOthers = other.slice(0, MAX_OTHERS); return ( {!other.length && (
Add devices} /> } />
)} {firstOthers.map((o) => ( ))} {other.length > MAX_OTHERS && ( )}
); };