import{u as p,j as n,F as d}from"./index-KAtljJVt.js";import{s as x}from"./Feature-B1aHJEJ-.js";import{a as j}from"./index-B-QDvwG_.js";function g({children:t,feature:s,deviceValue:a,endpointSpecific:o}){const i=s.unit,[r,m]=j(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",children:t})]})}export{g as D};
