"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = SearchResultSidebarToggleButton;
var _react = _interopRequireDefault(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _SidebarToggleButton = _interopRequireDefault(require("../navigation/SidebarToggleButton"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
const propTypes = {
  isSearchResultSidebarOpen: _propTypes.default.bool,
  toggleSearchResultSidebar: _propTypes.default.func
};
const defaultProps = {
  isSearchResultSidebarOpen: true
};
function SearchResultSidebarToggleButton(props) {
  const {
    isSearchResultSidebarOpen,
    toggleSearchResultSidebar
  } = props;
  return /*#__PURE__*/_react.default.createElement(_SidebarToggleButton.default, {
    isOpen: isSearchResultSidebarOpen,
    toggle: toggleSearchResultSidebar
  });
}
SearchResultSidebarToggleButton.propTypes = propTypes;
SearchResultSidebarToggleButton.defaultProps = defaultProps;