UNPKG

stream-chat-react

Version:

React components to create chat conversations or livestream style chat

16 lines (15 loc) 633 B
import type { ComponentType } from 'react'; import type { ReactionResponse } from 'stream-chat'; export interface ReactionSummary { EmojiComponent: ComponentType | null; firstReactionAt: Date | null; isOwnReaction: boolean; lastReactionAt: Date | null; latestReactedUserNames: string[]; reactionCount: number; reactionType: string; unlistedReactedUserCount: number; } export type ReactionsComparator = (a: ReactionSummary, b: ReactionSummary) => number; export type ReactionDetailsComparator = (a: ReactionResponse, b: ReactionResponse) => number; export type ReactionType = ReactionResponse['type'];