stream-chat-react
Version:
React components to create chat conversations or livestream style chat
16 lines • 794 B
TypeScript
import type { MessageReactionsProps } from '../MessageReactions';
import type { ReactionsComparator, ReactionSummary } from '../types';
export type UseProcessReactionsParams = Pick<MessageReactionsProps, 'own_reactions' | 'reaction_groups' | 'reactions'> & {
sortReactions?: ReactionsComparator;
};
export declare const defaultReactionsSort: ReactionsComparator;
export declare const useProcessReactions: (params: UseProcessReactionsParams) => {
readonly existingReactions: ReactionSummary[];
readonly hasReactions: boolean;
readonly reactionGroups: {
[key: string]: import("stream-chat").ReactionGroupResponse;
} | undefined;
readonly totalReactionCount: number;
readonly uniqueReactionTypeCount: number;
};
//# sourceMappingURL=useProcessReactions.d.ts.map