"use strict";

exports.__esModule = true;
exports.GridDragOverlayCardItem = void 0;
var _mobxReactLite = require("mobx-react-lite");
var _react = require("react");
function _GridDragOverlayCardItem(props) {
  const {
    state: {
      _dnd
    },
    renderItem
  } = props;
  const el = _dnd && _dnd.activeIndex != null ? renderItem(_dnd.activeIndex) : undefined;
  return el ? /*#__PURE__*/(0, _react.cloneElement)(el, {
    isOverlay: true
  }) : null;
}
const GridDragOverlayCardItem = exports.GridDragOverlayCardItem = (0, _mobxReactLite.observer)(_GridDragOverlayCardItem);
//# sourceMappingURL=GridDragOverlayCardItem.js.map