import a from"axios";import{createContext as p,useMemo as m}from"react";import{jsx as h}from"react/jsx-runtime";var x=p(void 0),n="production";var o=n==="development"?"https://qa-api-v2.bandit.network/sdk":"https://api-v2.bandit.network/sdk";var f=async e=>{try{return(await a.get(`${o}/users/survey?limit=10`,{headers:{"X-API-KEY":e}})).data}catch(t){throw t}},C=async(e,t,s,i)=>{try{return(await a.post(`${o}/users/${t}/survey`,{id:s,rating:i},{headers:{"X-API-KEY":e}})).data}catch(r){throw r}};export{f as getSurvey,C as submitSurvey};
