"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.PickerContent = PickerContent;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _react = _interopRequireDefault(require("react"));
var _PickerContentProvider = require("./PickerContentProvider");
var _PickerSelectorListContent = require("../PickerSelectorListContent");
var _MaxSelection = require("../MaxSelection");
var _PickerContentWrapped = require("./PickerContentWrapped");
var _jsxFileName = "/home/builduser/work/843658b9f44192f0/packages/cairo/dist/cjs/components/PickerContent/PickerContent.tsx";
function PickerContent(props) {
  const {
    modalState
  } = props;

  // wrap with a new WixPatternsContainer that can get initialProps
  return /*#__PURE__*/_react.default.createElement(_PickerContentProvider.PickerContentProvider, {
    modalState: modalState,
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 53,
      columnNumber: 5
    }
  }, /*#__PURE__*/_react.default.createElement(_PickerContentWrapped.PickerContentWrapped, (0, _extends2.default)({}, props, {
    renderPickerContent: ({
      state,
      renderItem
    }) => /*#__PURE__*/_react.default.createElement(_PickerSelectorListContent.PickerSelectorListContent, (0, _extends2.default)({}, props.selectorListProps, {
      state: state,
      multiple: (0, _MaxSelection.fromMultipleSelectionToBoolean)(props.multiple),
      hasAdditionalStep: props.hasAdditionalStep,
      renderItem: renderItem,
      __self: this,
      __source: {
        fileName: _jsxFileName,
        lineNumber: 57,
        columnNumber: 11
      }
    })),
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 54,
      columnNumber: 7
    }
  })));
}
//# sourceMappingURL=PickerContent.js.map