import Swiper from 'swiper';
import { Navigation, Pagination } from 'swiper/modules';

function initSlider() {
  new Swiper('.mySwiper', {
    modules: [Navigation, Pagination],
    slidesPerView: 1,
    spaceBetween: 30,
    loop: true,
    pagination: {
      el: '.swiper-pagination',
      clickable: true,
    },
    navigation: {
      nextEl: '.swiper-button-next',
      prevEl: '.swiper-button-prev',
    },
  });
}

export default initSlider;
