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

Function handleCopy

app/dashboard/components/ui/code-block.tsx:27–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25 copyButtonPlacement = 'top',
26}: CodeBlockProps) => {
27 const handleCopy = () => {
28 if (!dataToCopy) return;
29 navigator.clipboard.writeText(dataToCopy);
30 toast({
31 title: 'Copied to clipboard',
32 description: `${title || 'Content'} has been copied.`,
33 });
34 };
35
36 return (
37 <Card

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…