MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / copy

Function copy

website/src/components/docs/mdx-components.tsx:9–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7 const [copyFailed, setCopyFailed] = useState(false);
8
9 const copy = () => {
10 navigator.clipboard.writeText(text).then(() => {
11 setCopied(true);
12 setTimeout(() => setCopied(false), 2000);
13 }).catch(() => {
14 setCopyFailed(true);
15 setTimeout(() => setCopyFailed(false), 2000);
16 });
17 };
18
19 return (
20 <button

Callers 9

GetMethod · 0.85
GrowMethod · 0.85
stringSlicesEqualFunction · 0.85
AssertTablesFunction · 0.85
AssertColumnsFunction · 0.85
FormatMethod · 0.85
afterStatementMethod · 0.85
StatsMethod · 0.85

Calls

no outgoing calls

Tested by 2

stringSlicesEqualFunction · 0.68