UNPKG

zigbee2mqtt-windfront

Version:

[![Version](https://img.shields.io/npm/v/zigbee2mqtt-windfront.svg)](https://npmjs.org/package/zigbee2mqtt-windfront) [![CI](https://github.com/Nerivec/zigbee2mqtt-windfront/actions/workflows/ci.yml/badge.svg)](https://github.com/Nerivec/zigbee2mqtt-windf

2 lines (1 loc) 617 B
import{b as p,j as n,F as d}from"./index-C9teBVht.js";import{s as x}from"./Feature-NdqklTM_.js";import{a as j}from"./index-Dm1jDR4v.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};