Debian Codegraph @

node/@patternfly/react-core/dist/esm/deprecated/components/DragDrop/DragDrop.js

raw
1 import { jsx as _jsx } from "react/jsx-runtime";
2 import { createContext } from 'react';
3 export const DragDropContext = createContext({
4 onDrag: (_source) => true,
5 onDragMove: (_source, _dest) => { },
6 onDrop: (_source, _dest) => false
7 });
8 export const DragDrop = ({ children, onDrag = () => true, onDragMove = () => { }, onDrop = () => false }) => (_jsx(DragDropContext.Provider, { value: { onDrag, onDragMove, onDrop }, children: children }));
9 DragDrop.displayName = 'DragDrop';
10 //# sourceMappingURL=DragDrop.js.map