"use client";
import e from"axios";async function t(t=e){try{return(await t.get(`/api/users`)).data}catch(e){throw console.error(`Error fetching user data:`,e),e}}async function n(t){try{return(await e.get(`https://api.github.com/user/${t}`)).data.avatar_url}catch(e){return console.warn(`Failed to fetch GitHub avatar:`,e),null}}export{t as n,n as t};
//# sourceMappingURL=user-DMT7E0fc.js.map