stream-chat-react
Version:
React components to create chat conversations or livestream style chat
11 lines (10 loc) • 764 B
TypeScript
/// <reference types="react" />
import type { StreamMessage } from '../../../../context/ChannelStateContext';
import type { DefaultStreamChatGenerics } from '../../../../types/types';
export declare function useNewMessageNotification<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(messages: StreamMessage<StreamChatGenerics>[], 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>>;
};