"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("../components/mouse.js"),r=require("../utils/bugs.js"),u=require("./use-event.js");exports.useHandleToggle=function(s){let n=e.useRef(null);return{onPointerDown:u.useEvent((e=>{n.current=e.pointerType,!r.isDisabledReactIssue7711(e.currentTarget)&&"mouse"===e.pointerType&&e.button===t.MouseButton.Left&&(e.preventDefault(),s(e))})),onClick:u.useEvent((e=>{"mouse"!==n.current&&(r.isDisabledReactIssue7711(e.currentTarget)||s(e))}))}};
//# sourceMappingURL=use-handle-toggle.js.map
