UNPKG

stream-chat-react

Version:

React components to create chat conversations or livestream style chat

10 lines 788 B
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").MutableRefObject<boolean>; isMessageListScrolledToBottom: boolean; newMessagesNotification: boolean; setIsMessageListScrolledToBottom: import("react").Dispatch<import("react").SetStateAction<boolean>>; setNewMessagesNotification: import("react").Dispatch<import("react").SetStateAction<boolean>>; }; //# sourceMappingURL=useNewMessageNotification.d.ts.map