import _Button from "@alifd/next/es/button";
import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["label", "onClick"];
import * as React from 'react';
export var CardButtonGroup = function CardButtonGroup(_ref) {
  var dataSource = _ref.dataSource,
    text = _ref.text;
  return /*#__PURE__*/React.createElement(React.Fragment, null, dataSource.map(function (_ref2) {
    var label = _ref2.label,
      onClick = _ref2.onClick,
      rest = _objectWithoutPropertiesLoose(_ref2, _excluded);
    return /*#__PURE__*/React.createElement(_Button, _extends({
      text: text,
      type: "primary",
      onClick: onClick
    }, rest), label);
  }));
};
CardButtonGroup.defaultProps = {
  dataSource: []
};
export default CardButtonGroup;