MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / handleCopy

Function handleCopy

freebuff/web/src/app/home-client.tsx:173–179  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

171 )
172
173 const handleCopy = () => {
174 navigator.clipboard.writeText(INSTALL_COMMAND)
175 setCopied(true)
176 setCopyCount((c) => c + 1)
177 posthog.capture(AnalyticsEvent.FREEBUFF_HOME_INSTALL_COMMAND_COPIED)
178 setTimeout(() => setCopied(false), 1800)
179 }
180
181 return (
182 <div className="relative">

Callers

nothing calls this directly

Calls 2

setTimeoutFunction · 0.85
captureMethod · 0.80

Tested by

no test coverage detected