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

Function isDirectoryDropItem

packages/react-aria/src/dnd/utils.ts:373–375  ·  view source on GitHub ↗
(dropItem: DropItem)

Source from the content-addressed store, hash-verified

371
372/** Returns whether a drop item is a directory. */
373export function isDirectoryDropItem(dropItem: DropItem): dropItem is DirectoryDropItem {
374 return dropItem.kind === 'directory';
375}
376
377// Global DnD collection state tracker.
378export interface DnDState {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected