MCPcopy Create free account
hub / github.com/CodeWithHarry/Sigma-Web-Dev-Course / copyText

Function copyText

Video 130/passop/src/components/Manager.jsx:21–33  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

19 }, [])
20
21 const copyText = (text) => {
22 toast('Copied to clipboard!', {
23 position: "top-right",
24 autoClose: 5000,
25 hideProgressBar: false,
26 closeOnClick: true,
27 pauseOnHover: true,
28 draggable: true,
29 progress: undefined,
30 theme: "dark",
31 });
32 navigator.clipboard.writeText(text)
33 }
34
35
36

Callers 1

ManagerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected