import { CommunityRepository } from '@amityco/ts-sdk-react-native';
import { useLiveCollection } from '../useReactQueryLiveCollection';
import { QUERY_KEY } from '../../../../core/constants';
export const useCommunityMemberCollection = ({
  params,
  enabled = true
}) => {
  const query = useLiveCollection({
    key: [QUERY_KEY.COMMUNITY_MEMBERS_COLLECTION, JSON.stringify(params)],
    params,
    fetcher: CommunityRepository.Membership.getMembers,
    enabled
  });
  return {
    ...query,
    members: query.data
  };
};
//# sourceMappingURL=useCommunityMemberCollection.js.map