UNPKG

@fle-ui/plus-im-record

Version:
30 lines (29 loc) 968 B
import React, { UIEventHandler } from 'react'; import { IMMessage } from '../@types'; import './index.less'; declare const LOADING_STATUS: any; export type LoadingStatus = keyof typeof LOADING_STATUS | undefined; export interface RecordSession { relationId?: string | number; accid?: string; relationType?: number; } export interface ChatMessageListProps { searchValue?: string; h5?: boolean; msgs: IMMessage[]; myAccount?: string; loadingStarus?: LoadingStatus; onScrollTop?: UIEventHandler<HTMLDivElement>; onScrollBottom?: UIEventHandler<HTMLDivElement>; accountsMap?: Record<string, { accid: string; nickname: string; avatar: string; }>; style?: React.CSSProperties; isSessionEnd?: boolean; recordSession?: RecordSession; } declare const ChatMessageList: React.ForwardRefExoticComponent<ChatMessageListProps & React.RefAttributes<HTMLDivElement>>; export default ChatMessageList;