import _map from "lodash/fp/map";
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); }
import React from 'react';
import PropTypes from 'prop-types';
import Slide from '../../../atom/slide';
import Slider from '../../slider';
const ImageSlider = ({
  slides = []
}) => {
  const allSlides = _map(slide => /*#__PURE__*/React.createElement(Slide, _extends({}, slide, {
    key: slide.title
  })), slides);
  return /*#__PURE__*/React.createElement(Slider, null, allSlides);
};
ImageSlider.propTypes = process.env.NODE_ENV !== "production" ? {
  slides: PropTypes.arrayOf(PropTypes.shape(Slide.propTypes))
} : {};
export default ImageSlider;
//# sourceMappingURL=index.js.map