var i=(n,e,o)=>new Promise((c,p)=>{var m=t=>{try{r(o.next(t))}catch(a){p(a)}},v=t=>{try{r(o.throw(t))}catch(a){p(a)}},r=t=>t.done?c(t.value):Promise.resolve(t.value).then(m,v);r((o=o.apply(n,e)).next())});import x from"axios";import{createContext as l,useMemo as k}from"react";import{jsx as w}from"react/jsx-runtime";var C=l(void 0),d="production";var s=d==="development"?"https://qa-api-v2.bandit.network/sdk":"https://api-v2.bandit.network/sdk";var S=n=>i(void 0,null,function*(){try{return(yield x.get(`${s}/consumer`,{headers:{"X-API-KEY":n}})).data}catch(e){return{}}});export{S as getConsumerDetails};
