UNPKG

@hakit/components

Version:
19 lines (18 loc) 640 B
import { j as t } from "../../../../../emotion-react-jsx-runtime.browser.esm-BErL7L7Y.js"; import { localize as e, isUnavailableState 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(n(i.state) ? e("unavailable") : l === !0 ? "On" : "Off"); } }) }); } export { p as ModalSwitchControls, p as default }; //# sourceMappingURL=index.js.map