MCPcopy Create free account
hub / github.com/CommandCodeAI/BaseAI / onCopy

Function onCopy

apps/baseai.dev/src/components/mdx/InlineCodeCopy.tsx:21–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19 const totalChars = content.length;
20
21 const onCopy = () => {
22 navigator.clipboard.writeText(content);
23 if (isCopied) return;
24 copyToClipboard(content);
25 };
26
27 return (
28 <span className="inline-flex items-center gap-1 whitespace-nowrap">

Callers

nothing calls this directly

Calls 1

copyToClipboardFunction · 0.50

Tested by

no test coverage detected