"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.ActionBarSection = ActionBarSection;
var _react = _interopRequireDefault(require("react"));
var _classnames = _interopRequireDefault(require("classnames"));
var _jsxRuntime = require("react/jsx-runtime");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
function ActionBarSection({
  actionsList,
  position
}) {
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
    className: (0, _classnames.default)('actions-list', `${position}-actions-list`),
    children: actionsList.map(({
      element,
      testId,
      className,
      key
    }, index) => element && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
      className: (0, _classnames.default)('action-bar-item', className),
      "test-id": testId,
      children: element
    }, key || index))
  });
}