import{B as i,a2 as n,C as m,aQ as c,v as f}from"./index.d8ce26ef.js";function v({pageName:t,callback:o,contentConfig:r}){const e=i([]),u=n(()=>r),a=n(()=>({list:e.value.some(s=>s==="001"),create:e.value.some(s=>s==="002"),detail:e.value.some(s=>s==="007")}));return m(()=>{e.value=c().getMenuActions(t),o&&o(f(e))}),{contentConfigRef:u,permissions:e,permission:a}}export{v as u};
