'use client';
import{jsx as e}from"react/jsx-runtime";import t from"../ImageListGrid.js";import i from"../ImageListCarousel.js";import{createClass as r}from"@gem-sdk/system";import{useProductImagePostPurchase as o}from"../../../hooks/useProductImagePostPurchase.js";import{getOnlyFeatureLayoutClass as a}from"../../../common/classes.js";let OnlyGalleryImage=m=>{let{setting:s,styles:l,gallery:c}=m,p={...s,...l},{isImageListCarousel:g}=o({imageList:c,setting:s}),d=r(a());return e("div",{className:d,children:g?e(i,{...m,productImages:c,aspectRatio:p?.ilAspectRatio,objectFit:p.ilObjectFit,spacing:p.ilSpacing,navigation:p?.ilNavigation,vertical:p?.layoutType!=="bottom-center",border:p?.ilBorder,itemPerSlide:p?.ilItemPerSlide}):e(t,{...m,productImages:c})})};export{OnlyGalleryImage as default};
