import{dG as a,dq as u,dm as s,o as c,ah as d,ai as x}from"./index-D_pphaE2.js";import"./envs-CRUy-_iG.js";function j({device:t}){const{t:n}=a("zigbee"),o=u.useMemo(()=>{const i=[];for(const r in t.endpoints){const l=t.endpoints[r];i.push(s.jsx("li",{children:s.jsxs("details",{open:!0,children:[s.jsxs("summary",{children:[n(e=>e.endpoint)," ",r]}),s.jsxs("ul",{children:[s.jsx("li",{children:s.jsxs("details",{children:[s.jsxs("summary",{children:[s.jsx(c,{icon:d})," ",n(e=>e.output_clusters)]}),s.jsx("ul",{children:l.clusters.output.map(e=>s.jsx("li",{children:s.jsx("span",{className:"cursor-text select-text",children:e})},e))})]})}),s.jsx("li",{children:s.jsxs("details",{children:[s.jsxs("summary",{children:[s.jsx(c,{icon:x})," ",n(e=>e.input_clusters)]}),s.jsx("ul",{children:l.clusters.input.map(e=>s.jsx("li",{children:s.jsx("span",{className:"cursor-text select-text",children:e})},e))})]})})]})]})},r))}return i},[t.endpoints,n]);return s.jsx("ul",{className:"menu bg-base-100 w-full",children:o})}export{j as default};
