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 { WebhookCard, type WebhookItem } from "./WebhookCard";
interface WebhooksListProps {
webhooks: WebhookItem[];
loading: boolean;
testingId: string | null;
t: (key: string, opts?: Record<string, unknown>) => string;
onTest: (wh: WebhookItem) => void;
onToggleEnabled: (wh: WebhookItem) => void;
onEdit: (wh: WebhookItem) => void;
onDelete: (wh: WebhookItem) => void;
}
export function WebhooksList({
webhooks,
loading,
testingId,
t,
onTest,
onToggleEnabled,
onEdit,
onDelete,
}: WebhooksListProps) {
if (loading) {
return <p className="py-10 text-center text-sm text-text-muted">{t("loading")}</p>;
}
if (webhooks.length === 0) {
return (
<div className="flex flex-col items-center gap-3 py-14 text-center">
<span className="material-symbols-outlined text-[48px] text-text-muted">webhook</span>
<p className="text-sm text-text-muted">{t("noWebhooks")}</p>
</div>
);
}
return (
<div className="space-y-3">
{webhooks.map((wh) => (
<WebhookCard
key={wh.id}
webhook={wh}
t={t}
testingId={testingId}
onTest={onTest}
onToggleEnabled={onToggleEnabled}
onEdit={onEdit}
onDelete={onDelete}
/>
))}
</div>
);
}