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