"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _jsxRuntime = require("react/jsx-runtime");
const ProCardActions = props => {
  const {
    actions,
    prefixCls
  } = props;
  return actions && actions.length ? /*#__PURE__*/(0, _jsxRuntime.jsx)("ul", {
    className: `${prefixCls}-actions`,
    children: actions.map((action, index) =>
    /*#__PURE__*/
    // eslint-disable-next-line react/no-array-index-key
    (0, _jsxRuntime.jsx)("li", {
      style: {
        width: `${100 / actions.length}%`
      },
      children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
        children: action
      })
    }, `action-${index}`))
  }) : null;
};
var _default = ProCardActions;
exports.default = _default;