UNPKG

@uimkit/uikit-react

Version:

<img style="width:64px" src="https://mgmt.uimkit.chat/media/img/avatar.png"/>

21 lines (18 loc) 992 B
import React__default from 'react'; import { Message } from '../../types/models.js'; import { InfiniteScrollProps } from '../InfiniteScrollPaginator/InfiniteScroll.js'; import { ChatStateContextValue } from '../../context/ChatStateContext.js'; interface UIMessageListProps extends InfiniteScrollProps { className?: string; messageList?: Array<Message>; highlightedMessageId?: string; intervalsTimer?: number; /** The pixel threshold to determine whether or not the user is scrolled up in the list, defaults to 200px */ scrolledUpThreshold?: number; /** Function called when latest messages should be loaded, after the list has jumped at an earlier message set */ jumpToLatestMessage?: () => Promise<void>; } type UIMessageListWithContextProps = ChatStateContextValue & UIMessageListProps; declare const UIMessageList: React__default.FC; export { UIMessageList, UIMessageListProps, UIMessageListWithContextProps }; //# sourceMappingURL=UIMessageList.d.ts.map