"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.IconButton = void 0;
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
var _react = _interopRequireDefault(require("react"));
require("../styles/button.css");
var _excluded = ["icon"];
var IconButton = function IconButton(_ref) {
  var icon = _ref.icon,
    props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
  return /*#__PURE__*/_react.default.createElement("button", Object.assign({
    type: "button",
    className: "minimal icon-button"
  }, props), icon);
};
exports.IconButton = IconButton;
IconButton.defaultProps = {
  icon: /*#__PURE__*/_react.default.createElement("div", null),
  onClick: undefined
};