"use strict";

exports.__esModule = true;
exports.Actions = void 0;

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

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

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

var Actions = function Actions(_ref) {
  var tag = _ref.tag,
      actions = _ref.actions;
  return /*#__PURE__*/_react.default.createElement("div", {
    className: "actions"
  }, actions.map(function (action) {
    return /*#__PURE__*/_react.default.createElement(_Button.Button, _extends({
      key: action.name,
      tag: tag
    }, action), action.name);
  }));
};

Actions.displayName = 'Actions';
var ActionsDoc;

if (process.env.NODE_ENV !== 'production') {
  // eslint-disable-next-line global-require
  ActionsDoc = require('./doc').doc(Actions);
}

var ActionsWrapper = ActionsDoc || Actions;
exports.Actions = ActionsWrapper;