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