import{b9 as o,u as m,j as e,a as d,gS as u,c as f,b8 as y,W as C,b$ as s,t as b}from"./index-_eM6l4Nf.js";import{a as k}from"./index-CmVntchS.js";import{s as i}from"./kafka.styles-CXa2i6tY.js";const T=()=>{const x=o(),{id:j,topicName:l}=m(),t={projectId:j,topicId:l},{data:c=[]}=k(t),h=()=>x(b.project.settings.kafka.view);return e.jsxs(d,{flexDirection:"column",children:[e.jsx(u,{mr:"auto",mode:"highlight",onClick:h,children:"<- back to all Kafka Topics"}),e.jsxs(d,{my:"20px",alignItems:"center",children:[e.jsx(f,{gray:!0,bold:!0,mr:"20px",fontSize:"18px",children:l}),e.jsx(y,{variant:"light",mode:"bordered",value:"Kafka Topic",children:"Kafka Topic"})]}),e.jsx(C,{mb:"20px",title:"Partitions",children:e.jsxs(s,{hoverable:!1,children:[e.jsx("thead",{children:e.jsxs(s.Row,{sx:i.row,children:[e.jsx(s.HeadCell,{children:"partition id"}),e.jsx(s.HeadCell,{children:"partition leader"}),e.jsx(s.HeadCell,{children:"partion replicas"}),e.jsx(s.HeadCell,{fillSpace:!0,children:"insync replicas"})]})}),e.jsx("tbody",{children:c.map(a=>{var r,n;return e.jsxs(s.Row,{sx:i.bodyRow,children:[e.jsx(s.Cell,{children:a==null?void 0:a.id}),e.jsx(s.Cell,{children:a==null?void 0:a.leader}),e.jsx(s.Cell,{children:(r=a==null?void 0:a.replicas)==null?void 0:r.join(" | ")}),e.jsx(s.Cell,{children:(n=a==null?void 0:a.inSyncReplicas)==null?void 0:n.join(" | ")})]},a==null?void 0:a.id)})})]})})]})};export{T as default};
