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