import Swiper from 'swiper';
import SwiperCore, { Navigation, Pagination, Scrollbar } from 'swiper/core';

SwiperCore.use([Navigation, Pagination, Scrollbar]);

export default (() => {
    window.addEventListener('load', function () {
      const decorsList = new Swiper('.decors-list .decors', {
        freeMode: true,
        freeModeSticky: true,
        slidesPerView: 4,
        spaceBetween: 32,
        scrollbar: {
          draggable: false,
        },
        navigation: {
          nextEl: '.decors-list .decors .swiper-button-next',
          prevEl: '.decors-list .decors .swiper-button-prev',
        },
      });
    })
})()