stream-chat-react
Version:
React components to create chat conversations or livestream style chat
10 lines (9 loc) • 599 B
TypeScript
import type { LocalMessage, ReactionResponse, ReactionSort } from 'stream-chat';
import type { ReactionType } from '../../Reactions/types';
export declare const MAX_MESSAGE_REACTIONS_TO_FETCH = 1000;
type FetchMessageReactionsNotifications = {
getErrorNotification?: (message: LocalMessage) => string;
notify?: (notificationText: string, type: 'success' | 'error') => void;
};
export declare function useReactionsFetcher(message: LocalMessage, notifications?: FetchMessageReactionsNotifications): (reactionType?: ReactionType, sort?: ReactionSort) => Promise<ReactionResponse[]>;
export {};