"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.BannersBlock = void 0;
var _react = _interopRequireDefault(require("react"));
var _CoalitionCarousel = require("./../CoalitionCarousel");
var _CoalitionBanner = require("../CoalitionBanner");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
const BannersBlock = _ref => {
  let {
    banners
  } = _ref;
  if (!banners || banners.length === 0) return /*#__PURE__*/_react.default.createElement("div", null);
  return /*#__PURE__*/_react.default.createElement(_CoalitionCarousel.CoalitionCarousel, null, banners.map((item, index) => (0, _CoalitionBanner.CoalitionBanner)(item, index)));
};
exports.BannersBlock = BannersBlock;