UNPKG

stream-chat-react

Version:

React components to create chat conversations or livestream style chat

13 lines (12 loc) 642 B
import type React from 'react'; import type { LocalMessage, UserResponse } from 'stream-chat'; import type { ReactEventHandler } from '../types'; export type CustomMentionHandler = (event: React.BaseSyntheticEvent, mentioned_users: UserResponse[]) => void; export type MentionedUserEventHandler = (event: React.BaseSyntheticEvent, mentionedUsers: UserResponse[]) => void; export declare const useMentionsHandler: (message?: LocalMessage, customMentionHandler?: { onMentionsClick?: CustomMentionHandler; onMentionsHover?: CustomMentionHandler; }) => { onMentionsClick: ReactEventHandler; onMentionsHover: ReactEventHandler; };