MCPcopy Create free account
hub / github.com/adobe/react-spectrum / getDropOperation

Function getDropOperation

packages/@react-spectrum/ai/src/PromptField.tsx:359–361  ·  view source on GitHub ↗
(types)

Source from the content-addressed store, hash-verified

357 hasDropButton: true,
358 isDisabled: !acceptedAttachmentTypes,
359 getDropOperation(types) {
360 return acceptedAttachmentTypes && types.has(acceptedAttachmentTypes) ? 'copy' : 'cancel';
361 },
362 async onDrop(e) {
363 let files = await Promise.all(
364 e.items

Callers

nothing calls this directly

Calls 1

hasMethod · 0.65

Tested by

no test coverage detected