"use strict";

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

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

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

var _react = _interopRequireDefault(require("react"));

var _propTypes = _interopRequireDefault(require("prop-types"));

var _constants = require("../../constants");

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

var _Icon = _interopRequireDefault(require("../Icon"));

// Copyright 1999-2017. Plesk International GmbH. All rights reserved.
const CardButton = ({
  icon,
  ...props
}) => /*#__PURE__*/_react.default.createElement(_Button.default, (0, _extends2.default)({
  icon: _Icon.default.create(icon)
}, props));

CardButton.propTypes = {
  /**
   * @ignore
   */
  baseClassName: _propTypes.default.string,
  icon: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.object, _propTypes.default.element]).isRequired
};
CardButton.defaultProps = {
  baseClassName: "".concat(_constants.CLS_PREFIX, "card-button")
};
var _default = CardButton;
exports.default = _default;