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

25 lines (24 loc) 938 B
import React, { ReactNode } from 'react'; import { ChatSDK } from '../../SDK'; import { CurrentConversation } from '../../store/ConversationStore'; import giftConfig from './giftConfig'; export interface GiftKeyboardProps { prefix?: string; className?: string; style?: React.CSSProperties; icon?: ReactNode; onSelected?: (emojiString: string) => void; trigger?: 'click' | 'hover'; onClick?: (e: React.MouseEvent<Element, MouseEvent>) => void; conversation?: CurrentConversation; gifts?: ReactNode[]; onSendMessage?: (message: ChatSDK.CustomMsgBody) => void; onBeforeSendMessage?: (message: ChatSDK.MessageBody) => Promise<{ chatType: 'chatRoom'; conversationId: string; } | void>; giftConfig?: typeof giftConfig; closeAfterClick?: boolean; } declare const GiftKeyboard: (props: GiftKeyboardProps) => import("react/jsx-runtime").JSX.Element; export { GiftKeyboard };