stream-chat-react
Version:
React components to create chat conversations or livestream style chat
10 lines (9 loc) • 564 B
TypeScript
/// <reference types="react" />
import type { RenderedMessage } from '../../utils';
export declare function useNewMessageNotification(messages: RenderedMessage[], currentUserId: string | undefined, hasMoreNewer?: boolean): {
atBottom: import("react").RefObject<boolean>;
isMessageListScrolledToBottom: boolean;
newMessagesNotification: boolean;
setIsMessageListScrolledToBottom: import("react").Dispatch<import("react").SetStateAction<boolean>>;
setNewMessagesNotification: import("react").Dispatch<import("react").SetStateAction<boolean>>;
};