'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = SearchButtonBar;

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _propTypes = require('prop-types');

var _propTypes2 = _interopRequireDefault(_propTypes);

var _SearchButton = require('./SearchButton');

var _SearchButton2 = _interopRequireDefault(_SearchButton);

var _SearchClearButton = require('./SearchClearButton');

var _SearchClearButton2 = _interopRequireDefault(_SearchClearButton);

var _ButtonBar = require('../../../styles/cspace-ui/ButtonBar.css');

var _ButtonBar2 = _interopRequireDefault(_ButtonBar);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

const propTypes = {
  onClearButtonClick: _propTypes2.default.func
};
// import SearchSaveButton from './SearchSaveButton';


const defaultProps = {
  onClearButtonClick: undefined
};

function SearchButtonBar(props) {
  const onClearButtonClick = props.onClearButtonClick;


  return _react2.default.createElement(
    'div',
    { className: _ButtonBar2.default.common },
    _react2.default.createElement(_SearchButton2.default, null),
    _react2.default.createElement(_SearchClearButton2.default, { onClick: onClearButtonClick })
  );
}

SearchButtonBar.propTypes = propTypes;
SearchButtonBar.defaultProps = defaultProps;