"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.PickerContentBaseWrapped = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _react = _interopRequireDefault(require("react"));
var _mobxReactLite = require("mobx-react-lite");
var _designSystem = require("@wix/design-system");
var _PickerContentStCss = require("./PickerContent.st.css.js");
var _jsxFileName = "/home/builduser/work/843658b9f44192f0/packages/cairo/dist/cjs/components/PickerContent/PickerContentBaseWrapped.tsx";
function _PickerContentBaseWrapped(props) {
  const {
    className,
    children,
    onCloseButtonClick,
    closeButtonProps,
    ...rest
  } = props;
  return /*#__PURE__*/_react.default.createElement(_designSystem.CustomModalLayout, (0, _extends2.default)({
    className: (0, _PickerContentStCss.st)(_PickerContentStCss.classes.root, {}, className),
    removeContentPadding: true,
    showFooterDivider: true,
    closeButtonProps: {
      autoFocus: true,
      ...closeButtonProps,
      onClick: event => {
        onCloseButtonClick == null || onCloseButtonClick(event);
        closeButtonProps == null || closeButtonProps.onClick == null || closeButtonProps.onClick(event);
      }
    }
  }, rest, {
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 18,
      columnNumber: 5
    }
  }), /*#__PURE__*/_react.default.createElement(_designSystem.Box, {
    height: "100%",
    flex: 1,
    direction: "vertical",
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 32,
      columnNumber: 7
    }
  }, children));
}
const PickerContentBaseWrapped = exports.PickerContentBaseWrapped = (0, _mobxReactLite.observer)(_PickerContentBaseWrapped);
//# sourceMappingURL=PickerContentBaseWrapped.js.map