(ref?: RefObject<HTMLElement | null>)
| 409 | // Util function to check if the current dragging collection ref is the same as the current targeted droppable collection ref. |
| 410 | // Allows a droppable ref arg in case the global drop collection ref hasn't been set |
| 411 | export function isInternalDropOperation(ref?: RefObject<HTMLElement | null>): boolean { |
| 412 | let {draggingCollectionRef, dropCollectionRef} = globalDndState; |
| 413 | return ( |
| 414 | draggingCollectionRef?.current != null && |
| 415 | draggingCollectionRef.current === (ref?.current || dropCollectionRef?.current) |
| 416 | ); |
| 417 | } |
| 418 | |
| 419 | type DropEffect = 'none' | 'copy' | 'link' | 'move'; |
| 420 | export let globalDropEffect: DropEffect | undefined; |
no outgoing calls
no test coverage detected