@hakit/components
Version:
A series of components to work with @hakit/core
19 lines (18 loc) • 640 B
JavaScript
import { j as t } from "../../../../../emotion-react-jsx-runtime.browser.esm-Tq_btErF.js";
import { isUnavailableState as e, localize as n } from "@hakit/core";
import { Row as f } from "../../../Row/index.js";
import { SwitchControls as m } from "../../../Entity/Switch/SwitchControls/index.js";
function p({
entity: o,
onStateChange: r,
...a
}) {
return /* @__PURE__ */ t(f, { fullWidth: !0, children: /* @__PURE__ */ t(m, { entity: o, ...a, onChange: (i, l) => {
r(e(i.state) ? n("unavailable") : l === !0 ? "On" : "Off");
} }) });
}
export {
p as ModalSwitchControls,
p as default
};
//# sourceMappingURL=index.js.map