"use strict";var React=require("react"),index=require("../constants/index.js"),useCarousel=require("./useCarousel.js");const useNavigationCarouselPostPurchase=e=>{let{moveToIdx:s,maxIdx:r,setMoveToIdx:a}=useCarousel.useCarousel(),{type:u,vertical:t}=e,o="next"==u?s>=r:0===s,i=React.useMemo(()=>index.BUTTON_URL_MAP_POST_PURCHASE[u][t?"vertical":"horizontal"][o?"disabled":"enabled"],[u,t,o]),n=()=>{if("next"===u){a(s+1);return}a(s-1)};return{imgSrc:i,handleClick:n,disabled:o}};exports.useNavigationCarouselPostPurchase=useNavigationCarouselPostPurchase;
