import{aI as r}from"./app-k0jcl5PQ.js";function u(t,o,n=[]){var a;const[,f]=r.useState(!1);return r.useEffect(()=>{const e=t();if(e)return e.off("add remove change"),e.on("add remove change",()=>{f(c=>!c)}),o&&e.on("remove",o),()=>{e.off("add remove change")}},n),(a=t())==null?void 0:a.toJSON()}export{u};
//# sourceMappingURL=DQeiaRoX.chunk.js.map
