import{w as i,ag as n,x as m,ad as c,l as f}from"./index.js";function p({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{p as u};
