<template>
  <div>
    <pre>
    {{ productsData?.images?.filter(img => img?.src?.includes(colorVariants.blackCottonPolyester)) }}
    </pre>
  </div>
</template>

<script setup lang="ts">
import { useGetProductsDetail } from '~/api/queries'

const { data: productsData } = useGetProductsDetail(79)

const colorVariants = {
  beigeCottonPolyester: 'beige_cotton-polyester_',
  blackCotton: 'black_cotton_',
  greyCottonPolyester: 'grey_cotton-polyester_',
  blackCottonPolyester: 'black_cotton-polyester_',
}
</script>
