@wulperstudio/cms
Version:
Wulper Studio Library Components CMS
26 lines • 933 B
JavaScript
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
var _excluded = ["id", "items", "renderItem"];
import React from 'react';
import { AlterBoardColumn } from '../AlterBoardColumn';
import { Item } from '../Item';
import { jsx as _jsx } from "react/jsx-runtime";
export var ColumnDragOverlay = function ColumnDragOverlay(_ref) {
var id = _ref.id,
items = _ref.items,
_renderItem = _ref.renderItem,
props = _objectWithoutProperties(_ref, _excluded);
return /*#__PURE__*/_jsx(AlterBoardColumn, Object.assign({
label: "Column ".concat(id)
}, props, {
children: items.map(function (item, index) {
return /*#__PURE__*/_jsx(Item, {
renderItem: function renderItem(args) {
return _renderItem(Object.assign({}, args, {
item: item,
index: index
}));
}
}, item == null ? void 0 : item.id);
})
}));
};