<template>
    <Swiper
      :autoHeight="true"
      :spaceBetween="30"
      :centeredSlides="true"
      :autoplay="{
        delay: 4000,
        disableOnInteraction: false,
      }"
      :pagination="{
        clickable: true,
      }"
      :navigation="true"
      :modules="[SwiperAutoplay, SwiperPagination, SwiperNavigation]"
    >

      <SwiperSlide v-for="image in gallery">
          <nuxt-img :src="'https://unboundedpress.org/api/' + bucket + '.files/' + image.image_id + '/binary'" 
          quality="50"/>
      </SwiperSlide>
    </Swiper>
  </template>

<script>
export default {
    props: ['gallery', 'bucket']
}
</script>