import{r as n}from"./vendor-react-ece1c85f.js";import{h as t}from"./index-c62ac197.js";const p=i=>{const o=t(e=>{var r;return((r=e.auth.session)==null?void 0:r.permission)??[]}),s=n.useMemo(()=>o.find(e=>e.defaultMenuName===i),[o,i]);return n.useMemo(()=>({isView:(s==null?void 0:s.isView)??!1,isEdit:(s==null?void 0:s.isEdit)??!1,isDelete:(s==null?void 0:s.isDelete)??!1,isManage:(s==null?void 0:s.isManage)??!1}),[s])};export{p as u};
