import{slicedToArray as e}from"../../../../_virtual/_rollupPluginBabelHelpers.js";import{useState as n,useCallback as u}from"react";function r(){var r=n(null),l=e(r,2),t=l[0],o=l[1],p="number"==typeof t,s=u((function(e,n){o(n?e:null)}),[o]),a=u((function(){o(null)}),[o]);return{setSubMenuIsOpenByIndex:s,hasOpenSubMenu:p,openSubMenuIndex:t,setOpenSubMenuIndex:o,resetOpenSubMenuIndex:a}}export{r as default};
