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