import{aS as l,u as d,fF as c,c9 as u,j as e,a$ as m,cf as x,E as g,Q as h,hp as f,c as p,b as j,o as R}from"./index-ea7817a2.js";import{u as C,R as b}from"./RoleChainingTable-e3cbb20d.js";import{N as v}from"./NoData-8733f606.js";import"./iamRoleUtils-7a0b61f9.js";const Q=()=>{const i=l(),{id:o}=d(),{data:a,isLoading:t}=c(),{data:s=[],isLoading:n}=C({id:+o}),{isAdmin:r}=u();return n||t?e.jsx(m,{}):a!=null&&a.enabled?e.jsxs(g,{title:"IAM Role Chaining",maxHeight:"calc(100vh - 215px)",contentProps:{pb:0,overflow:"auto"},children:[e.jsx(h,{flexDirection:"row",mb:"28px",children:r&&e.jsx(f,{onClick:()=>{i(p(j.settings.iamRoleChaining.list))},mode:"default",children:"edit cloud role ->"})}),s&&s.length>0?e.jsx(b,{roleChaining:s,isEditable:!1}):e.jsx(R,{my:"40px",children:e.jsx(v,{mainText:"No IAM Role Chaining found"})})]}):e.jsx(x,{})};export{Q as default};
