'use strict';

exports.__esModule = true;

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

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

var _propTypes2 = _interopRequireDefault(_propTypes);

require('./style.css');

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

var ButtonTag = function ButtonTag(_ref) {
  var type = _ref.type,
      value = _ref.value,
      text = _ref.text,
      handleClick = _ref.handleClick;
  return _react2.default.createElement(
    'button',
    {
      type: 'button',
      className: 'ma__button-tag js-results-heading-tag',
      'data-ma-filter-type': type,
      'data-ma-filter-value': value,
      onClick: handleClick
    },
    text
  );
};

ButtonTag.propTypes = process.env.NODE_ENV !== "production" ? {
  /** The label text of the sort button */
  type: _propTypes2.default.string.isRequired,
  /** The label text of the sort button */
  value: _propTypes2.default.string.isRequired,
  /** The label text of the sort button */
  text: _propTypes2.default.string.isRequired,
  /** An array of sort button objects */
  handleClick: _propTypes2.default.func.isRequired
} : {};

exports.default = ButtonTag;
module.exports = exports['default'];