import _extends from "@babel/runtime/helpers/extends";
// Copyright 1999-2017. Plesk International GmbH. All rights reserved.
import React from 'react';
import PropTypes from 'prop-types';
import { CLS_PREFIX } from '../../constants';
import Button from '../Button';
import Icon from '../Icon';

const CardButton = ({
  icon,
  ...props
}) => /*#__PURE__*/React.createElement(Button, _extends({
  icon: Icon.create(icon)
}, props));

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