"use strict";const u=require("./useControlledState-DLAEsTLd.cjs.js"),S=require("react");function o(e={}){let{isReadOnly:l}=e,[t,c]=u.$458b0a5536c1a7cf$export$40bfa8c7b0832715(e.isSelected,e.defaultSelected||!1,e.onChange),[a]=S.useState(t);function f(n){l||c(n)}function i(){l||c(!t)}var d;return{isSelected:t,defaultSelected:(d=e.defaultSelected)!==null&&d!==void 0?d:a,setSelected:f,toggle:i}}exports.$3017fa7ffdddec74$export$8042c6c013fd5226=o;
//# sourceMappingURL=useToggleState-CKQxC8Yz.cjs.js.map
