import{x as o,y as s,z as i}from"./main-crazy-owls-work.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function n(){const e=o(),{isPending:t,mutateAsync:c}=s({mutationFn:async a=>i(`account/${a}/destroy`,void 0,void 0,"POST"),onSuccess:()=>{e.invalidateQueries({queryKey:["accounts"]}),e.invalidateQueries({queryKey:["ai-platform-accounts"]})}});return{deleteAccount:c,deleteAccountLoading:t}}export{n as u};
