"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = exports.Button = void 0;

var _styledBase = _interopRequireDefault(require("@emotion/styled-base"));

var _Button = _interopRequireDefault(require("./Button.styles"));

function byKind(props) {
  var kind = props.kind;

  switch (kind) {
    case 'primary':
      {
        return _Button["default"].themes.primary;
      }

    case 'third':
      {
        return _Button["default"].themes.third;
      }
  }

  return _Button["default"].themes.secondary;
}

var Button = (0, _styledBase["default"])("button", {
  target: "e15fev0k0",
  label: "Button"
})(_Button["default"].base, " ", _Button["default"].font, " ", byKind, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0J1dHRvbi9CdXR0b24udHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXVCbUMiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL2NvbXBvbmVudHMvQnV0dG9uL0J1dHRvbi50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCdcblxuaW1wb3J0IHN0eWxlcyBmcm9tICcuL0J1dHRvbi5zdHlsZXMnXG5cbmV4cG9ydCBpbnRlcmZhY2UgUHJvcHMge1xuICBraW5kOiAnc2Vjb25kYXJ5JyB8ICdwcmltYXJ5JyB8ICd0aGlyZCdcbn1cblxuZnVuY3Rpb24gYnlLaW5kKHByb3BzOiBQcm9wcykge1xuICBjb25zdCB7IGtpbmQgfSA9IHByb3BzXG5cbiAgc3dpdGNoIChraW5kKSB7XG4gICAgY2FzZSAncHJpbWFyeSc6IHtcbiAgICAgIHJldHVybiBzdHlsZXMudGhlbWVzLnByaW1hcnlcbiAgICB9XG4gICAgY2FzZSAndGhpcmQnOiB7XG4gICAgICByZXR1cm4gc3R5bGVzLnRoZW1lcy50aGlyZFxuICAgIH1cbiAgfVxuXG4gIHJldHVybiBzdHlsZXMudGhlbWVzLnNlY29uZGFyeVxufVxuXG5jb25zdCBCdXR0b24gPSBzdHlsZWQuYnV0dG9uPFByb3BzPmBcbiAgJHtzdHlsZXMuYmFzZX1cbiAgJHtzdHlsZXMuZm9udH1cbiAgJHtieUtpbmR9XG5gXG5cbkJ1dHRvbi5kZWZhdWx0UHJvcHMgPSB7XG4gIGtpbmQ6ICdwcmltYXJ5Jyxcbn1cblxuZXhwb3J0IHsgQnV0dG9uIH1cblxuZXhwb3J0IGRlZmF1bHQgQnV0dG9uXG4iXX0= */");
exports.Button = Button;
Button.defaultProps = {
  kind: 'primary'
};
var _default = Button;
exports["default"] = _default;