import {jsx}from'react/jsx-runtime';import {Splide,SplideSlide}from'@cdmbase/react-splide';import NewsCard from'./newsCard.js';function NewsCarousel({
  news
}) {
  return jsx("div", {
    className: "pl-0 md:pl-[120px] p-5 md:p-0",
    children: jsx(Splide, {
      options: {
        type: 'slide',
        drag: 'free',
        perPage: 3,
        perMove: 1,
        wheel: true,
        releaseWheel: true,
        pagination: false,
        speed: 500,
        wheelSleep: 300,
        breakpoints: {
          1024: {
            perPage: 5
          },
          600: {
            perPage: 2
          },
          480: {
            perPage: 1
          }
        }
      },
      children: news.map((item, key) => jsx(SplideSlide, {
        children: jsx(NewsCard, {
          heading: item.heading,
          date: item.date,
          imageUrl: item.imageUrl,
          newsLink: item.newsLink
        })
      }, key))
    })
  });
}export{NewsCarousel as default};//# sourceMappingURL=newsCarousel.js.map
