UNPKG

linkmore-design

Version:

🌈 πŸš€lmη»„δ»ΆεΊ“γ€‚πŸš€

25 lines β€’ 1.03 kB
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties"; var _excluded = ["keys", "onSortEnd", "virtual", "rowKey", "options", "tableWidth"]; import React from 'react'; import DndContainer from "../rowSort/DndContainerRow"; import SortableBox from "../sortableBox"; import { VirtualWrapper } from "../virtual"; var DraggableContainer = function DraggableContainer(_ref) { var keys = _ref.keys, onSortEnd = _ref.onSortEnd, virtual = _ref.virtual, rowKey = _ref.rowKey, options = _ref.options, tableWidth = _ref.tableWidth, props = _objectWithoutProperties(_ref, _excluded); return /*#__PURE__*/React.createElement(DndContainer, { move: onSortEnd, items: keys, rowKey: rowKey, options: options, tableWidth: tableWidth }, /*#__PURE__*/React.createElement(SortableBox, { items: keys }, virtual ? /*#__PURE__*/React.createElement(VirtualWrapper, props) : /*#__PURE__*/React.createElement("tbody", props))); }; export default DraggableContainer;