easemob-chat-uikit
Version:
   ![GitHub last c
41 lines (40 loc) • 1.47 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;
disableRecorder?: boolean;
disableRecorderTitle?: string;
}
export interface MessageInputRef {
stopRecording: () => void;
}
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<MessageInputProps & React.RefAttributes<MessageInputRef>, "ref"> & React.RefAttributes<MessageInputRef>>>;
export default _default;