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