MCPcopy Create free account
hub / github.com/dailydotdev/apps / handleCopy

Function handleCopy

packages/shared/src/features/ask/components/AskInstall.tsx:100–107  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

98 };
99
100 const handleCopy = async (value: string) => {
101 try {
102 await navigator.clipboard.writeText(value);
103 displayToast('Copied to clipboard');
104 } catch {
105 displayToast('Failed to copy');
106 }
107 };
108
109 return (
110 <FlexCol className="gap-4">

Callers 1

AskInstallFunction · 0.70

Calls 1

displayToastFunction · 0.85

Tested by

no test coverage detected