<template>
  <div class="product-images">
    <div
      v-for="image in currentVariantImages?.slice(0, 5)"
      :key="image?.id"
    >
      <img width="100%" :src="image?.src" :alt="image?.src">
    </div>
  </div>
</template>

<script setup lang="ts">
import { useCurrentProduct } from '~/composables'

const { currentVariantImages } = useCurrentProduct()
</script>

<style lang="scss">
.product-images {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
}
</style>
