UNPKG

@patternfly/react-core

Version:

This library provides a set of common React components for use with the PatternFly reference implementation.

14 lines 700 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DragDrop = exports.DragDropContext = void 0; const tslib_1 = require("tslib"); const React = tslib_1.__importStar(require("react")); exports.DragDropContext = React.createContext({ onDrag: (_source) => true, onDragMove: (_source, _dest) => { }, onDrop: (_source, _dest) => false }); const DragDrop = ({ children, onDrag = () => true, onDragMove = () => { }, onDrop = () => false }) => (React.createElement(exports.DragDropContext.Provider, { value: { onDrag, onDragMove, onDrop } }, children)); exports.DragDrop = DragDrop; exports.DragDrop.displayName = 'DragDrop'; //# sourceMappingURL=DragDrop.js.map