"use strict";

exports.__esModule = true;
exports.default = exports.ButtonText = exports.ButtonIcon = void 0;
var _react = _interopRequireDefault(require("react"));
var _styledComponents = _interopRequireDefault(require("styled-components"));
var _Button = _interopRequireDefault(require("./Button"));
var _Icon = _interopRequireDefault(require("./Icon"));
var _Text = _interopRequireDefault(require("./Text"));
var _excluded = ["icon", "label"];
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
(function () {
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
  enterModule && enterModule(module);
})();
(function () {
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
  enterModule && enterModule(module);
})();
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
  return a;
};
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
  return a;
};
var ButtonIcon = exports.ButtonIcon = (0, _styledComponents.default)(_Icon.default).withConfig({
  displayName: "IconButton__ButtonIcon",
  componentId: "sc-xsbiws-0"
})(["font-size:1.23em;margin:-3px -2px;"]);
var ButtonText = exports.ButtonText = _styledComponents.default.span.withConfig({
  displayName: "IconButton__ButtonText",
  componentId: "sc-xsbiws-1"
})(["", " + &{margin-left:12px;vertical-align:top;}"], ButtonIcon);
var IconButton = function IconButton(_ref) {
  var icon = _ref.icon,
    label = _ref.label,
    props = _objectWithoutProperties(_ref, _excluded);
  return /*#__PURE__*/_react.default.createElement(_Button.default, props, icon ? /*#__PURE__*/_react.default.createElement(ButtonIcon, {
    id: icon
  }) : null, label ? /*#__PURE__*/_react.default.createElement(ButtonText, null, /*#__PURE__*/_react.default.createElement(_Text.default, {
    message: label
  })) : null);
};
var _default = IconButton;
var _default2 = _default;
var _default3 = exports.default = _default2;
;
(function () {
  var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
  if (!reactHotLoader) {
    return;
  }
  reactHotLoader.register(ButtonIcon, "ButtonIcon", "/home/vsts/work/1/s/src/components/IconButton.js");
  reactHotLoader.register(ButtonText, "ButtonText", "/home/vsts/work/1/s/src/components/IconButton.js");
  reactHotLoader.register(IconButton, "IconButton", "/home/vsts/work/1/s/src/components/IconButton.js");
  reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/IconButton.js");
})();
;
(function () {
  var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
  leaveModule && leaveModule(module);
})();
;
(function () {
  var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
  if (!reactHotLoader) {
    return;
  }
  reactHotLoader.register(ButtonIcon, "ButtonIcon", "/home/vsts/work/1/s/src/components/IconButton.js");
  reactHotLoader.register(ButtonText, "ButtonText", "/home/vsts/work/1/s/src/components/IconButton.js");
  reactHotLoader.register(IconButton, "IconButton", "/home/vsts/work/1/s/src/components/IconButton.js");
  reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/IconButton.js");
})();
;
(function () {
  var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
  leaveModule && leaveModule(module);
})();