MCPcopy
hub / github.com/zai-org/GLM-OCR / handleCopy

Function handleCopy

apps/frontend/src/components/ocr/CopyButton.tsx:11–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9
10export function CopyButton({ content, className = '' }: CopyButtonProps) {
11 const handleCopy = async () => {
12 if (!content) return
13 const success = await copyToClipboard(content)
14 if (success) {
15 toast.success('复制成功')
16 } else {
17 console.error('复制失败')
18 }
19 }
20
21 return (
22 <button

Callers

nothing calls this directly

Calls 2

copyToClipboardFunction · 0.90
errorMethod · 0.80

Tested by

no test coverage detected