UNPKG

linkmore-design

Version:

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

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