import { j as p } from "./jsx-runtime-OVHDjVDe.js";
import { B as a } from "./main-BINuQ9na.js";
const u = ({
  value: o,
  onClick: s,
  onChange: r,
  checkedVariant: e = "filled",
  uncheckedVariant: f,
  rightClickToggle: n = !1,
  ...i
}) => /* @__PURE__ */ p.jsx(
  a,
  {
    onClick: (t) => {
      s?.(t), !n && r(!o);
    },
    onContextMenu: (t) => {
      n && (t.preventDefault(), t.stopPropagation(), r(!o));
    },
    variant: o ? e : f,
    ...i
  }
);
export {
  u as T
};
