// Copyright 1999-2023. 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';
import { jsx as _jsx } from "react/jsx-runtime";
const CardButton = _ref => {
  let {
    icon,
    ...props
  } = _ref;
  return /*#__PURE__*/_jsx(Button, {
    icon: Icon.create(icon),
    ...props
  });
};
CardButton.propTypes = {
  /**
   * @ignore
   */
  baseClassName: PropTypes.string,
  icon: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.element]).isRequired
};
CardButton.defaultProps = {
  baseClassName: `${CLS_PREFIX}card-button`
};
export default CardButton;