import{y as r,M as o,Q as i,m as e,U as u,b as a}from"./main-d4af3e3c.js";function l(){const{trans:s}=r();return o({mutationFn:n=>c(n),onSuccess:(n,t)=>{i(t.delete?s(e("Subscription deleted.")):s(e("Subscription cancelled.")))},onError:n=>u(n)})}function c({subscriptionId:s,...n}){return a.post(`billing/subscriptions/${s}/cancel`,n).then(t=>t.data)}function m(){const{trans:s}=r();return o({mutationFn:n=>p(n),onSuccess:()=>{i(s(e("Subscription renewed.")))},onError:n=>u(n)})}function p({subscriptionId:s}){return a.post(`billing/subscriptions/${s}/resume`).then(n=>n.data)}export{m as a,l as u};
//# sourceMappingURL=use-resume-subscription-81a149c4.js.map
