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