UNPKG

easemob-chat-uikit

Version:

![Static Badge](https://img.shields.io/badge/platform-React-green) ![Static Badge](https://img.shields.io/badge/language-typescript-green) ![GitHub commit activity](https://img.shields.io/github/commit-activity/y/easemob/Easemob-UIKit-web) ![GitHub last c

27 lines (26 loc) 980 B
import React from 'react'; import { ConversationItemProps } from './ConversationItem'; import { HeaderProps } from '../header'; import { Conversation } from '../store/ConversationStore'; export type ConversationData = Array<Conversation>; export type ServerCvs = Array<{ channel_id: string; lastMessage: any; unread_num: number; }>; export interface ConversationListProps { prefix?: string; className?: string; style?: React.CSSProperties; onItemClick?: (data: Conversation) => void; onSearch?: (e: React.ChangeEvent<HTMLInputElement>) => boolean; renderHeader?: () => React.ReactNode; renderSearch?: () => React.ReactNode; renderItem?: (cvs: Conversation, index: number) => React.ReactNode; headerProps?: HeaderProps; itemProps?: Partial<ConversationItemProps>; presence?: boolean; showSearchList?: boolean; } declare const ConversationList: React.FunctionComponent<ConversationListProps>; export { ConversationList };