MCPcopy Index your code
hub / github.com/TaskingAI/TaskingAI / handleCopy

Function handleCopy

frontend/src/contents/index.tsx:37–48  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

35 [`message_window`]: 'Message Window',
36 }
37 const handleCopy = (text: string) => {
38 const clipboard = new ClipboardJS('.icon-copy', {
39 text: () => text
40 });
41 clipboard.on('success', function () {
42 toast.success('Copied to clipboard')
43 clipboard.destroy()
44 });
45 clipboard.on('error', function (e) {
46 console.log(e);
47 });
48 }
49
50
51 const typeReverse: Record<string, string> = {

Callers 1

CommonComponentsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected