import{b2 as o,u as m,j as e,Q as d,hp as u,x as f,be as b,E as C,bd as s,b as k}from"./index-ea7817a2.js";import{a as g}from"./index-b96fda11.js";import{s as i}from"./kafka.styles-4e751247.js";const R=()=>{const x=o(),{id:h,topicName:l}=m(),j={projectId:h,topicId:l},{data:t=[]}=g(j),c=()=>x(k.project.settings.kafka.view);return e.jsxs(d,{flexDirection:"column",children:[e.jsx(u,{mr:"auto",mode:"highlight",onClick:c,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(b,{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:t.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{R as default};
