UNPKG

react-together-ant-design

Version:

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

21 lines (20 loc) 341 B
import { jsx as c } from "react/jsx-runtime"; import { Switch as h } from "antd"; import { useStateTogether as f } from "react-together"; function s({ rtKey: t, ...o }) { const [e, r] = f(t, !1); return /* @__PURE__ */ c( h, { ...o, checked: e, onChange: () => r(!e) } ); } export { s as default };