MCPcopy Create free account
hub / github.com/TaskingAI/TaskingAI / handleCopy

Function handleCopy

frontend/src/components/chunkPage/index.tsx:22–33  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

20 const { t } = useTranslation();
21 const { tooltipEditTitle, tooltipDeleteTitle } = tooltipTitle();
22 const handleCopy = (text: string) => {
23 const clipboard = new ClipboardJS('.icon-copy', {
24 text: () => text
25 });
26 clipboard.on('success', function () {
27 toast.success(`${t('CopiedToClipboard')}`)
28 clipboard.destroy()
29 });
30 clipboard.on('error', function (e) {
31 console.log(e);
32 });
33 }
34 const columns = [
35 {
36 title: `${t('projectModelID')}`,

Callers 1

ChunkPageFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected