"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _react = _interopRequireDefault(require("react"));
var _DragDropContextProvider = _interopRequireDefault(require("../DragDropContextProvider"));
var _jsxFileName = "/home/builduser/work/57e038ea7326c1ec/packages/wix-design-system/dist/cjs/SortableGridBase/withDNDContext.jsx",
  _this = void 0;
var _default = exports["default"] = function _default(Component) {
  var withDNDContext = function withDNDContext(props) {
    return /*#__PURE__*/_react["default"].createElement(_DragDropContextProvider["default"], {
      __self: _this,
      __source: {
        fileName: _jsxFileName,
        lineNumber: 7,
        columnNumber: 5
      }
    }, /*#__PURE__*/_react["default"].createElement(Component, (0, _extends2["default"])({}, props, {
      __self: _this,
      __source: {
        fileName: _jsxFileName,
        lineNumber: 8,
        columnNumber: 7
      }
    })));
  };
  withDNDContext.displayName = Component.displayName;
  return withDNDContext;
};