UNPKG

stream-chat-react

Version:

React components to create chat conversations or livestream style chat

10 lines (9 loc) 614 B
import type { LocalMessage } from 'stream-chat'; import type { ReactEventHandler } from '../types'; export declare const missingUseFlagHandlerParameterWarning = "useFlagHandler was called but it is missing one or more necessary parameters."; export type FlagMessageNotifications = { getErrorNotification?: (message: LocalMessage) => string; getSuccessNotification?: (message: LocalMessage) => string; notify?: (notificationText: string, type: 'success' | 'error') => void; }; export declare const useFlagHandler: (message?: LocalMessage, notifications?: FlagMessageNotifications) => ReactEventHandler;