"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.PickerSubheader = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _react = _interopRequireDefault(require("react"));
var _mobxReactLite = require("mobx-react-lite");
var _CollectionSearch = require("../CollectionSearch");
var _designSystem = require("@wix/design-system");
var _jsxFileName = "/home/builduser/work/843658b9f44192f0/packages/cairo/dist/cjs/components/PickerSubheader/PickerSubheader.tsx";
function _PickerSubheader(props) {
  const {
    state,
    subtitle,
    search = true,
    spacing = 30,
    ...rest
  } = props;
  return /*#__PURE__*/_react.default.createElement(_designSystem.Box, (0, _extends2.default)({
    dataHook: "picker-subheader",
    display: "block",
    padding: search ? `30px ${spacing}px 18px` : `0 ${spacing}px 18px`
  }, rest, {
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 21,
      columnNumber: 5
    }
  }), subtitle && /*#__PURE__*/_react.default.createElement(_designSystem.Box, {
    display: "block",
    marginTop: search ? undefined : `30px`,
    marginBottom: search ? `18px` : undefined,
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 28,
      columnNumber: 9
    }
  }, subtitle), /*#__PURE__*/_react.default.createElement(_CollectionSearch.CollectionSearch, {
    minWidthPixels: "100%",
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 36,
      columnNumber: 7
    }
  }));
}
const PickerSubheader = exports.PickerSubheader = (0, _mobxReactLite.observer)(_PickerSubheader);
//# sourceMappingURL=PickerSubheader.js.map