import { CategoryRepository } from '@amityco/ts-sdk-react-native';
import { useLiveCollection } from '../useReactQueryLiveCollection';
import { QUERY_KEY } from '../../../../core/constants';
export const useCategoryCollection = ({
  params
}) => {
  const query = useLiveCollection({
    key: [QUERY_KEY.CATEGORY_COLLECTION],
    params,
    fetcher: CategoryRepository.getCategories
  });
  return {
    ...query,
    categories: query.data
  };
};
//# sourceMappingURL=useCategoryCollection.js.map