"use strict";

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

var _react = require("react");

var _react2 = _interopRequireDefault(_react);

var _reactEmotion = require("react-emotion");

var _reactEmotion2 = _interopRequireDefault(_reactEmotion);

var _Button = require("./Button.Skeleton");

var _Button2 = _interopRequireDefault(_Button);

var _BaseButton = require("./BaseButton");

var _presets = require("../../utils/presets");

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

function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }

function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }

var StyledSecondaryButton =
/*#__PURE__*/
(0, _reactEmotion2["default"])(_BaseButton.StyledBaseButton, {
  target: "e1141ey80"
})("background:", _presets.palette.white, ";border:1px solid ", _presets.palette.purple[200], ";color:", _presets.palette.purple[500], ";:focus,&:hover:not([disabled]){border:1px solid ", _presets.palette.purple[600], ";color:", _presets.palette.purple[600], ";}");

var SecondaryButton = function SecondaryButton(_ref) {
  var StyledComponent = _ref.StyledComponent,
      rest = _objectWithoutProperties(_ref, ["StyledComponent"]);

  return _react2["default"].createElement(_Button2["default"], Object.assign({
    StyledComponent: StyledSecondaryButton
  }, rest));
};

SecondaryButton.propTypes = _Button.buttonPropTypes;
SecondaryButton.defaultProps = _Button.buttonDefaultPropTypes;
exports["default"] = SecondaryButton;