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 { useTranslations } from "next-intl";
import { Button } from "@/shared/components";
interface ProxyBatchActionsProps {
selectedCount: number;
batchDeleting: boolean;
autoTesting: boolean;
batchActivating: boolean;
onBatchDelete: () => void;
onBatchActivate: () => void;
onAutoTestAll: () => void;
}
export function ProxyBatchActions({
selectedCount,
batchDeleting,
autoTesting,
batchActivating,
onBatchDelete,
onBatchActivate,
onAutoTestAll,
}: ProxyBatchActionsProps) {
const t = useTranslations("proxyRegistry");
return (
<>
{selectedCount > 0 && (
<>
<span className="text-xs text-text-muted">
{t("batchSelectedCount", { count: selectedCount })}
</span>
<Button
size="sm"
variant="secondary"
icon="check_circle"
onClick={onBatchActivate}
loading={batchActivating}
data-testid="proxy-registry-batch-activate"
>
{t("batchActivateSelected", { count: selectedCount })}
</Button>
<Button
size="sm"
variant="secondary"
icon="delete"
onClick={onBatchDelete}
loading={batchDeleting}
className="!text-red-400 !border-red-500/30"
data-testid="proxy-registry-batch-delete"
>
{t("batchDeleteSelected", { count: selectedCount })}
</Button>
</>
)}
<Button
size="sm"
variant="secondary"
icon="network_check"
onClick={onAutoTestAll}
loading={autoTesting}
data-testid="proxy-registry-test-all"
>
{t("testAll")}
</Button>
</>
);
}