'use strict';

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

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _Button = require('@material-ui/core/Button');

var _Button2 = _interopRequireDefault(_Button);

var _styles = require('@material-ui/core/styles');

var _reactIntl = require('react-intl');

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

var styles = {
  flatButton: {
    minHeight: 28,
    height: 28,
    minWidth: 'auto',
    padding: '6px 16px',
    fontSize: 12,
    marginLeft: -12
  }
};

var messages = (0, _reactIntl.defineMessages)({
  only: {
    'id': 'filter.show_only',
    'defaultMessage': 'Only'
  }
});

var OnlyButton = function OnlyButton(_ref) {
  var classes = _ref.classes,
      onClick = _ref.onClick;
  return _react2.default.createElement(
    _Button2.default,
    {
      color: 'primary',
      className: classes.flatButton,
      onClick: onClick },
    _react2.default.createElement(_reactIntl.FormattedMessage, messages.only)
  );
};

exports.default = (0, _styles.withStyles)(styles)(OnlyButton);
//# sourceMappingURL=OnlyButton.js.map