@greatapps/greatagents-ui 0.3.13 → 0.3.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
 
3
- import { useState, useMemo, useCallback } from "react";
3
+ import { useMemo, useCallback, useState } from "react";
4
4
  import { useToolCredentials, useAgents, useTools } from "../hooks";
5
5
  import { ToolCredentialsForm } from "../components/tools/tool-credentials-form";
6
6
  import { IntegrationCard } from "../components/capabilities/integration-card";
@@ -16,7 +16,7 @@ import {
16
16
  TabsList,
17
17
  TabsTrigger,
18
18
  } from "@greatapps/greatauth-ui/ui";
19
- import { Plus, Plug, KeyRound, Info, Loader2 } from "lucide-react";
19
+ import { Plug, KeyRound, Info, Loader2 } from "lucide-react";
20
20
  import type { GagentsHookConfig } from "../hooks/types";
21
21
  import type { Agent, Tool, ToolCredential } from "../types";
22
22
 
@@ -72,8 +72,6 @@ export function IntegrationsManagementPage({
72
72
  useToolCredentials(config);
73
73
  const { data: agentsData } = useAgents(config);
74
74
  const { data: toolsData } = useTools(config);
75
- const [createOpen, setCreateOpen] = useState(false);
76
-
77
75
  // Integration cards state (account-level, agentId=null)
78
76
  const { cards, isLoading: cardsLoading } = useIntegrationState(config, null);
79
77
 
@@ -237,20 +235,11 @@ export function IntegrationsManagementPage({
237
235
  </div>
238
236
  )}
239
237
 
240
- <div className="flex items-center justify-end mb-4">
241
- <Button onClick={() => setCreateOpen(true)} size="sm">
242
- <Plus className="mr-2 h-4 w-4" />
243
- Nova Credencial
244
- </Button>
245
- </div>
246
-
247
238
  <ToolCredentialsForm
248
239
  config={config}
249
240
  gagentsApiUrl={gagentsApiUrl}
250
241
  credentials={credentials}
251
242
  isLoading={credentialsLoading}
252
- createOpen={createOpen}
253
- onCreateOpenChange={setCreateOpen}
254
243
  />
255
244
  </TabsContent>
256
245
  </Tabs>