MCPcopy Create free account
hub / github.com/TaskingAI/TaskingAI / handleCopy

Function handleCopy

frontend/src/components/playground/index.tsx:161–169  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

159 const [pluginModalOpen, setPluginModalOpen] = useState(false)
160
161 const handleCopy = (text: string) => {
162 const clipboard = new ClipboardJS('.icon-copy', {
163 text: () => text
164 });
165 clipboard.on('success', function () {
166 toast.success(`${t('CopiedToClipboard')}`)
167 clipboard.destroy()
168 });
169 }
170 useEffect(() => {
171 const handleClickOutside = (event: any) => {
172 if (!(settingModal.current && settingModal.current.contains(event.target)) && !(settingIcon.current && settingIcon.current.contains(event.target))) {

Callers 1

PlaygroundFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected