remove add webhook tool in billed version

This commit is contained in:
Ramnique Singh 2025-08-15 00:15:18 +05:30
parent ff9f0ff1fc
commit d6894c4526
6 changed files with 41 additions and 37 deletions

View file

@ -15,7 +15,8 @@ export function AddWebhookTool({ projectId, onAddTool }: AddWebhookToolProps) {
function handleAddTool() {
onAddTool({
description: 'Webhook tool',
mockTool: false,
mockTool: true,
isWebhook: true,
});
}

View file

@ -35,6 +35,7 @@ export function ToolsConfig({
const [activeTab, setActiveTab] = useState(defaultActiveTab);
const [selectedToolkit, setSelectedToolkit] = useState<ToolkitType | null>(null);
const [isToolsPanelOpen, setIsToolsPanelOpen] = useState(false);
const useBilling = process.env.NEXT_PUBLIC_USE_BILLING === "true";
const handleTabChange = (key: Key) => {
setActiveTab(key.toString());
@ -84,14 +85,14 @@ export function ToolsConfig({
/>
</div>
</Tab>
<Tab key="webhook" title="Webhook">
{!useBilling && <Tab key="webhook" title="Webhook">
<div className="mt-4 p-6">
<AddWebhookTool
projectId={projectId}
onAddTool={onAddTool}
/>
</div>
</Tab>
</Tab>}
</Tabs>
{/* Tools Panel */}