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