import { Tag } from "sigpro"; import { joinClass } from "../core/utils.js"; /** SWAP */ export const Swap = (props) => Tag("label", { class: joinClass("swap", props.class) }, [ Tag("input", { type: "checkbox", checked: props.value }), Tag("div", { class: "swap-on" }, props.on), Tag("div", { class: "swap-off" }, props.off), ]);