MCPcopy Create free account
hub / github.com/dailydotdev/apps / onDrop

Function onDrop

packages/shared/src/components/fields/ImageInput.tsx:96–101  ·  view source on GitHub ↗
(event: DragEvent<HTMLButtonElement>)

Source from the content-addressed store, hash-verified

94 };
95
96 const onDrop = (event: DragEvent<HTMLButtonElement>) => {
97 event.preventDefault();
98 event.stopPropagation();
99 const file = event.dataTransfer.files?.[0];
100 handleFile(file);
101 };
102
103 const onClose = () => {
104 setImage(null);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected