"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.ToolbarSecondaryActions = ToolbarSecondaryActions;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _react = _interopRequireDefault(require("react"));
var _SecondaryActions = require("../SecondaryActions/SecondaryActions");
var _designSystem = require("@wix/design-system");
var _jsxFileName = "/home/builduser/work/843658b9f44192f0/packages/cairo/dist/cjs/components/CollectionToolbar/ToolbarSecondaryActions.tsx";
function ToolbarSecondaryActions({
  items
}) {
  return /*#__PURE__*/_react.default.createElement(_designSystem.Box, {
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 19,
      columnNumber: 5
    }
  }, items.map((item, index) => {
    const dataHook = item.dataHook ?? 'toolbar-secondary-actions';
    return /*#__PURE__*/_react.default.createElement(_designSystem.TableToolbar.Item, {
      key: index,
      __self: this,
      __source: {
        fileName: _jsxFileName,
        lineNumber: 24,
        columnNumber: 11
      }
    }, /*#__PURE__*/_react.default.createElement(_SecondaryActions.SecondaryActions, (0, _extends2.default)({
      key: index
    }, item, {
      dataHook: `${dataHook}-${index}`,
      __self: this,
      __source: {
        fileName: _jsxFileName,
        lineNumber: 25,
        columnNumber: 13
      }
    })));
  }));
}
//# sourceMappingURL=ToolbarSecondaryActions.js.map