UNPKG

stream-chat-react

Version:

React components to create chat conversations or livestream style chat

24 lines 991 B
import React, { type ReactNode } from 'react'; import type { ReactionResponse } from 'stream-chat'; export type ReactionSelectorProps = { /** Override dialog id used by the selector popover. */ dialogId?: string; /** Function that adds/removes a reaction on a message (overrides the function stored in `MessageContext`) */ handleReaction?: (reactionType: string, event: React.BaseSyntheticEvent) => Promise<void>; /** An array of the own reaction objects to distinguish own reactions visually */ own_reactions?: ReactionResponse[]; }; interface ReactionSelectorInterface { (props: ReactionSelectorProps): ReactNode; getDialogId: (_: { messageId: string; threadList?: boolean; }) => string; displayName: string; ExtendedList: React.ComponentType<ReactionSelectorProps & { dialogId?: string; }>; } export declare const ReactionSelector: ReactionSelectorInterface; export {}; //# sourceMappingURL=ReactionSelector.d.ts.map