MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / copyToClipboard

Function copyToClipboard

packages/web/src/app/error.tsx:66–70  ·  view source on GitHub ↗
(text: string, field: string)

Source from the content-addressed store, hash-verified

64 const [copied, setCopied] = useState<string | null>(null)
65
66 const copyToClipboard = (text: string, field: string) => {
67 navigator.clipboard.writeText(text)
68 setCopied(field)
69 setTimeout(() => setCopied(null), 2000)
70 }
71
72 return (
73 <Card className="w-full max-w-md mx-auto">

Callers 1

ErrorCardFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected