import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{Fr as t,Gy as n,Hy as r,Uy as i,kp as a,ln as o}from"./index-DDwwBb9e.js";var s=e(n()),c=r();function l({children:e}){let n=a(),{hasAccess:r,isLoading:l}=t();return(0,s.useEffect)(()=>{!l&&!r&&n.push(`/`)},[r,l,n]),l||!r?null:(0,c.jsx)(i,{FallbackComponent:o,resetKeys:[n.pathname],children:e})}export{l as t};
//# sourceMappingURL=OpsPageShell-D8LeWlZg.js.map