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