MCPcopy
hub / github.com/AgentOps-AI/agentops / copyApiKey

Function copyApiKey

app/dashboard/components/ui/api-keys-modal.tsx:42–54  ·  view source on GitHub ↗
(apiKey: string, projectName: string)

Source from the content-addressed store, hash-verified

40 }
41
42 const copyApiKey = (apiKey: string, projectName: string) => {
43 if (typeof window !== 'undefined') {
44 navigator.clipboard
45 .writeText(apiKey)
46 .then(() =>
47 toast({
48 title: 'API Key Copied',
49 description: `Copied API key for ${projectName}`,
50 }),
51 )
52 .catch(() => toast({ title: '❌ Manually copy API Key:', description: apiKey }));
53 }
54 };
55
56 const isPro = premStatus === 'pro';
57

Callers 1

ProjectsListFunction · 0.70

Calls 1

toastFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…