// frontend/components/AdminTabs/mcp/GatewayHeader.jsx // Top strip of the MCP Servers tab: gateway pill + roll-up counters. import React from "react"; export default function GatewayHeader({ status, installedCount, enabledCount, totalTools, onRefresh, onSync, syncing, }) { const reachable = status?.gateway_reachable; const dotColor = reachable ? "#10b981" : "#ef4444"; const dotLabel = reachable ? "Connected" : "Unreachable"; const gatewayUrl = status?.gateway_url || "—"; return (
MCP Context Forge — {dotLabel} {status?.plugin_enabled === false && ( plugin disabled )}
Gateway: {gatewayUrl}
{onSync && ( )}
); } function Counter({ label, value }) { return (
{value ?? "—"}
{label}
); }