Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors
TypeScript a2aai-agentsai-gatewayanthropicclaudeclaude-codeclinecodexcopilotcursordeepseekfree-aigeminikimillm-gatewaymcpopenaiopenai-proxyqwentoken-saver
"use client";
import dynamic from "next/dynamic";
import { useTranslations } from "next-intl";
import type { InterceptedRequest } from "@/mitm/inspector/types";
interface StatsTabProps {
requests: InterceptedRequest[];
}
// Recharts bundle is split via Next.js dynamic() — not included in the initial page chunk.
const StatsCharts = dynamic(() => import("./StatsCharts"), {
ssr: false,
loading: () => <LoadingCharts />,
});
function LoadingCharts() {
const t = useTranslations("trafficInspector");
return <div className="p-4 text-sm text-muted-foreground">{t("loadingCharts")}</div>;
}
export function StatsTab({ requests }: StatsTabProps) {
const t = useTranslations("trafficInspector");
if (requests.length === 0) {
return (
<div className="p-4 text-sm text-text-muted">{t("statsNoData")}</div>
);
}
return <StatsCharts requests={requests} />;
}