MCPcopy Create free account
hub / github.com/anomalyco/opencode / updateLabel

Function updateLabel

packages/session-ui/src/components/markdown.tsx:286–290  ·  view source on GitHub ↗
(button: HTMLElement)

Source from the content-addressed store, hash-verified

284 const timeouts = new Map<HTMLElement, ReturnType<typeof setTimeout>>()
285
286 const updateLabel = (button: HTMLElement) => {
287 const labels = getLabels()
288 const copied = button.getAttribute("data-copied") === "true"
289 setCopyState(button, labels, copied)
290 }
291
292 const handleClick = async (event: MouseEvent) => {
293 const target = event.target

Callers 1

setupCodeCopyFunction · 0.85

Calls 1

setCopyStateFunction · 0.85

Tested by

no test coverage detected