"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.PickerEmptyStateContainer = void 0;
var _react = _interopRequireDefault(require("react"));
var _designSystem = require("@wix/design-system");
var _PickerEmptyState = require("./PickerEmptyState");
var _mobxReactLite = require("mobx-react-lite");
var _jsxFileName = "/home/builduser/work/843658b9f44192f0/packages/cairo/dist/cjs/components/PickerEmptyState/PickerEmptyStateContainer.tsx";
function _PickerEmptyStateContainer({
  state,
  renderEmptyState,
  hasFilterDropdown
}) {
  const {
    minContentHeight,
    collection
  } = state;
  const {
    result: {
      originQuery,
      hasAvailableItems
    }
  } = collection;
  return /*#__PURE__*/_react.default.createElement(_designSystem.Box, {
    direction: "vertical",
    overflow: "auto",
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 36,
      columnNumber: 5
    }
  }, /*#__PURE__*/_react.default.createElement(_designSystem.Box, {
    align: "center",
    verticalAlign: "middle",
    paddingTop: "SP2",
    paddingBottom: "SP9",
    height: "100%",
    minHeight: minContentHeight,
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 37,
      columnNumber: 7
    }
  }, (renderEmptyState == null ? void 0 : renderEmptyState({
    hasAvailableItems,
    query: originQuery
  })) ?? /*#__PURE__*/_react.default.createElement(_PickerEmptyState.PickerEmptyState, {
    state: state,
    hasFilterDropdown: hasFilterDropdown,
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 49,
      columnNumber: 11
    }
  })));
}
const PickerEmptyStateContainer = exports.PickerEmptyStateContainer = (0, _mobxReactLite.observer)(_PickerEmptyStateContainer);
//# sourceMappingURL=PickerEmptyStateContainer.js.map