@atlaskit/pragmatic-drag-and-drop-hitbox
Version:
An optional package for Pragmatic drag and drop that enables the attaching of interaction information to a drop target
12 lines (11 loc) • 388 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.extractInstruction = extractInstruction;
var _treeItem = require("./tree-item");
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
function extractInstruction(userData) {
var _ref;
return (_ref = userData[_treeItem.uniqueKey]) !== null && _ref !== void 0 ? _ref : null;
}