import{aR as l,u as d,fz as u,c8 as c,j as e,a_ as g,ce as m,K as x,a as h,hp as f,g as p,e as j,O as R}from"./index-d6499a22.js";import{u as C,R as b}from"./RoleChainingTable-8c8bc952.js";import{N as v}from"./NoData-789df290.js";import"./iamRoleUtils-0d5d3309.js";const y=()=>{const i=l(),{id:o}=d(),{data:a,isLoading:t}=u(),{data:s=[],isLoading:n}=C({id:+o}),{isAdmin:r}=c();return n||t?e.jsx(g,{}):a!=null&&a.enabled?e.jsxs(x,{title:"IAM Role Chaining",maxHeight:"calc(100vh - 230px)",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(m,{})};export{y as default};
