import{Kt as e,rn as t,xt as n}from"./index-flfzyW4s.js";var r=t(e()),i=n();function a(e){let t=(0,r.useRef)(void 0);return(0,i.jsxs)(`label`,{className:`switch-ui`,tabIndex:0,onKeyDown:e=>{e.preventDefault(),t.current.click()},children:[(0,i.jsx)(`input`,{checked:e.isChecked,onChange:e.handleChange,type:`checkbox`,"data-namecommand":e.nameCommand,id:e.idInput,ref:t,disabled:e.disabled}),(0,i.jsx)(`span`,{"data-text-on":e.onLabel?e.onLabel:`ON`,"data-text-off":e.offLabel?e.offLabel:`OFF`,className:`switch-ui--control`,children:(0,i.jsx)(`span`,{})})]})}export{a as t};
//# sourceMappingURL=Switch-ChBEcNqU.js.map