import{u as l}from"./useNotifier-BCEAoFCf.js";import{cY as u}from"./index-BKr2rJhV.js";const f=()=>{const e=l();return async(r,d,c)=>{var t,a,s,n;try{await u.download(r,d,c)}catch(o){const i=((a=(t=o==null?void 0:o.response)==null?void 0:t.data)==null?void 0:a.usrMsg)||((n=(s=o==null?void 0:o.response)==null?void 0:s.data)==null?void 0:n.errorMsg);e.error({title:"Error",content:i})}}};export{f as u};
