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 o=o=>{let{moveToIdx:a,maxIdx:i,setMoveToIdx:n}=t(),{type:s,vertical:l}=o,u="next"==s?a>=i:0===a,m=e(()=>r[s][l?"vertical":"horizontal"][u?"disabled":"enabled"],[s,l,u]);return{imgSrc:m,handleClick:()=>{if("next"===s){n(a+1);return}n(a-1)},disabled:u}};export{o as useNavigationCarouselPostPurchase};
