stream-chat-react
Version:
React components to create chat conversations or livestream style chat
10 lines (9 loc) • 478 B
TypeScript
import type { RenderedMessage } from '../../utils';
type UseScrollToBottomOnNewMessageParams = {
scrollToBottom: () => void;
messages?: RenderedMessage[];
/** When `true`, the list will scroll to the latest message when the window regains focus */
scrollToLatestMessageOnFocus?: boolean;
};
export declare const useScrollToBottomOnNewMessage: ({ messages, scrollToBottom, scrollToLatestMessageOnFocus, }: UseScrollToBottomOnNewMessageParams) => void;
export {};