easemob-chat-uikit
Version:
   ![GitHub last c
41 lines (40 loc) • 1.3 kB
TypeScript
import React, { ReactNode } from 'react';
import { MoreActionProps } from './moreAction';
import { ChatSDK } from '../SDK';
import { CurrentConversation } from '../store/ConversationStore';
import { GiftKeyboardProps } from './gift/GiftKeyboard';
export type Actions = {
name: string;
visible: boolean;
icon?: ReactNode;
onClick?: () => void;
}[];
export interface MessageInputProps {
prefix?: string;
actions?: Actions;
customActions?: MoreActionProps['customActions'];
enabledTyping?: boolean;
onSend?: (message: any) => void;
className?: string;
style?: React.CSSProperties;
showSendButton?: boolean;
sendButtonIcon?: ReactNode;
row?: number;
placeHolder?: string;
disabled?: boolean;
isChatThread?: boolean;
enabledMention?: boolean;
onSendMessage?: (message: ChatSDK.MessageBody) => void;
conversation?: CurrentConversation;
onBeforeSendMessage?: (message: ChatSDK.MessageBody) => Promise<CurrentConversation | void>;
giftKeyboardProps?: GiftKeyboardProps;
onChange?: (value: string) => void;
onFocus?: () => void;
}
declare const _default: {
(props: MessageInputProps): import("react/jsx-runtime").JSX.Element;
defaultActions: Actions;
} & {
displayName: string;
};
export default _default;