stream-chat-react
Version:
React components to create chat conversations or livestream style chat
8 lines (7 loc) • 414 B
TypeScript
import type { LocalMessage } from 'stream-chat';
import type { ReactEventHandler } from '../types';
export type DeleteMessageNotifications = {
getErrorNotification?: (message: LocalMessage) => string;
notify?: (notificationText: string, type: 'success' | 'error') => void;
};
export declare const useDeleteHandler: (message?: LocalMessage, notifications?: DeleteMessageNotifications) => ReactEventHandler;