stream-chat-react
Version:
React components to create chat conversations or livestream style chat
15 lines • 590 B
TypeScript
import type { ReactionResponse, ReactionSort } from 'stream-chat';
import type { MessageContextValue } from '../../../context';
import type { ReactionType } from '../types';
export interface FetchReactionsOptions {
reactionType: ReactionType | null;
shouldFetch: boolean;
handleFetchReactions?: MessageContextValue['handleFetchReactions'];
sort?: ReactionSort;
}
export declare function useFetchReactions(options: FetchReactionsOptions): {
isLoading: boolean;
reactions: ReactionResponse[];
refetch: () => void;
};
//# sourceMappingURL=useFetchReactions.d.ts.map