import{e as c,j as r,l as f,eb as x}from"./index-DjCrtoJM.js";import{C as u}from"./capability-load-error-B_GRCsfG.js";function j(n){const e=c.c(6),{granted:o,loading:l,error:m,area:i,children:a}=n;if(l){let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=r.jsx("div",{className:"flex flex-1 items-center justify-center p-8",children:r.jsx(f,{size:20,className:"animate-spin text-muted-foreground"})}),e[0]=t):t=e[0],t}if(m){let t;return e[1]===Symbol.for("react.memo_cache_sentinel")?(t=r.jsx(u,{}),e[1]=t):t=e[1],t}if(!o){let t;return e[2]!==i?(t=r.jsx(x,{area:i}),e[2]=i,e[3]=t):t=e[3],t}let s;return e[4]!==a?(s=r.jsx(r.Fragment,{children:a}),e[4]=a,e[5]=s):s=e[5],s}export{j as A};
