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

Function withFileDragImage

packages/app/src/components/file-tree.tsx:102–108  ·  view source on GitHub ↗
(event: DragEvent)

Source from the content-addressed store, hash-verified

100}
101
102const withFileDragImage = (event: DragEvent) => {
103 const image = buildDragImage(event.currentTarget as HTMLElement)
104 if (!image) return
105 document.body.appendChild(image)
106 event.dataTransfer?.setDragImage(image, 0, 12)
107 setTimeout(() => document.body.removeChild(image), 0)
108}
109
110const FileTreeNode = (
111 p: ParentProps &

Callers 1

FileTreeNodeFunction · 0.85

Calls 1

buildDragImageFunction · 0.85

Tested by

no test coverage detected