import React from "react"; import { Network, Wifi, WifiOff } from "lucide-react"; import { useTranslation } from "react-i18next"; import type { ServerMetrics } from "@/ui/main-axios.ts"; interface NetworkWidgetProps { metrics: ServerMetrics | null; metricsHistory: ServerMetrics[]; } export function NetworkWidget({ metrics }: NetworkWidgetProps) { const { t } = useTranslation(); const network = (metrics as any)?.network; const interfaces = network?.interfaces || []; return (
{t("serverStats.noInterfacesFound")}