MCPcopy Create free account
hub / github.com/TheOrcDev/8bitcn-ui / copy

Function copy

components/copy-command-button.tsx:17–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15 copyCommand,
16}: CopyCommandButtonProps) {
17 const copy = () => {
18 navigator.clipboard.writeText(copyCommand);
19 toast("Command copied to clipboard");
20 };
21
22 const shortCommand = command.split(" ").at(-1);
23

Callers

nothing calls this directly

Calls 1

toastFunction · 0.90

Tested by

no test coverage detected