import{P as m,D as s}from"./index-BhMpD06x.js";function l(r){const e=m(),o=s();function t(){return o.communities.find(n=>n.id===r())??null}function i(){const n=t();return n?e.clientForCommunity(n,o.currentUser?.homeServer):e.homeClient}function u(){return o.serverForCommunity(r())??e.homeDomain}return{community:t,client:i,serverDomain:u}}export{l as u};
//# sourceMappingURL=useCommunityApiClient-CDo7XB-D.js.map
