UNPKG

stream-chat-react

Version:

React components to create chat conversations or livestream style chat

9 lines (8 loc) 737 B
import type { ReactEventHandler } from '../types'; import type { StreamMessage } from '../../../context/ChannelStateContext'; import type { DefaultStreamChatGenerics } from '../../../types/types'; export type DeleteMessageNotifications<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = { getErrorNotification?: (message: StreamMessage<StreamChatGenerics>) => string; notify?: (notificationText: string, type: 'success' | 'error') => void; }; export declare const useDeleteHandler: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(message?: StreamMessage<StreamChatGenerics>, notifications?: DeleteMessageNotifications<StreamChatGenerics>) => ReactEventHandler;