"use strict";

exports.__esModule = true;
exports.default = void 0;
var _map2 = _interopRequireDefault(require("lodash/fp/map"));
var _react = _interopRequireDefault(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _slide = _interopRequireDefault(require("../../../atom/slide"));
var _slider = _interopRequireDefault(require("../../slider"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
const ImageSlider = ({
  slides = []
}) => {
  const allSlides = (0, _map2.default)(slide => /*#__PURE__*/_react.default.createElement(_slide.default, _extends({}, slide, {
    key: slide.title
  })), slides);
  return /*#__PURE__*/_react.default.createElement(_slider.default, null, allSlides);
};
ImageSlider.propTypes = process.env.NODE_ENV !== "production" ? {
  slides: _propTypes.default.arrayOf(_propTypes.default.shape(_slide.default.propTypes))
} : {};
var _default = exports.default = ImageSlider;
//# sourceMappingURL=index.js.map