import p from"axios";import{createContext as d,useMemo as v}from"react";import{jsx as f}from"react/jsx-runtime";var x=d(void 0),e="production";var o=e==="development"?"https://qa-api-v2.bandit.network/sdk":"https://api-v2.bandit.network/sdk";var C=async(n,r,a,i)=>{try{return(await p.get(`${o}/spaces/leaderboard?space_ids=${n}&offset=${r}&limit=${a}`,{headers:{"X-API-KEY":i}})).data}catch(t){throw t}};export{C as fetchSpaceLeaderBoard};
