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

Function handleCopy

app/dashboard/components/ui/read-only-code-viewer.tsx:22–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20 title = 'code snippet',
21}) => {
22 const handleCopy = async () => {
23 try {
24 await navigator.clipboard.writeText(value);
25 toast({
26 title: 'Copied to Clipboard',
27 });
28 } catch (error) {
29 toast({
30 title: '❌ Could Not Access Clipboard',
31 description: 'Please ensure clipboard permissions are granted.',
32 variant: 'destructive',
33 });
34 console.error('Failed to copy:', error);
35 }
36 };
37
38 return (
39 <div

Callers

nothing calls this directly

Calls 1

toastFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…