UNPKG

@multisynq/react-together-primereact

Version:

A set of ready-to-use PrimeReact components that are synchronized across multiple users in real-time!

21 lines (20 loc) 381 B
import { jsx as n } from "react/jsx-runtime"; import { useStateTogether as h } from "@multisynq/react-together"; import { InputSwitch as u } from "primereact/inputswitch"; function m({ rtKey: e, ...t }) { const [o, r] = h(e, !1); return /* @__PURE__ */ n( u, { ...t, checked: o, onChange: (c) => r(c.value) } ); } export { m as default };