import{dG as p,dm as n,o as d}from"./index-D_pphaE2.js";import{s as x}from"./startCase-BsTKbnbP.js";import{g}from"./index-BhIhHSRV.js";function h({children:t,feature:s,deviceValue:a,endpointSpecific:o}){const i=s.unit,[r,m]=g(s.name,a,i),{t:c}=p("zigbee"),e=s.name==="state"?s.property:s.name;return n.jsxs("div",{className:"flex flex-row items-center gap-1 mb-2",children:[n.jsx(d,{icon:r,className:m}),n.jsxs("div",{className:"grow-1",title:e,children:[x(e),!o&&n.jsx("span",{title:c(l=>l.endpoint),children:s.endpoint?` (${s.endpoint})`:null})]}),n.jsx("div",{className:"shrink-1 *:bg-base-200",children:t})]})}export{h as D};
