UNPKG

@sendbird/uikit-react

Version:

Sendbird UIKit for React: A feature-rich and customizable chat UI kit with messaging, channel management, and user authentication.

34 lines (33 loc) 1.38 kB
import './index.scss'; import { ReactElement } from 'react'; import type { GroupChannel } from '@sendbird/chat/groupChannel'; import type { OpenChannel } from '@sendbird/chat/openChannel'; import { MenuItemProps } from '../ContextMenu'; import { SendableMessageType } from '../../utils/index'; import { ReplyType } from '../../types'; export interface MessageMenuRenderMenuItemProps extends Omit<MenuItemProps, 'children' | 'className'> { className?: string; text: string; } export interface MessageMenuProps { className?: string | Array<string>; message: SendableMessageType; channel: GroupChannel | OpenChannel | null; isByMe?: boolean; disabled?: boolean; replyType?: ReplyType; disableDeleteMessage?: boolean; showEdit?: (bool: boolean) => void; showRemove?: (bool: boolean) => void; deleteMessage?: (message: SendableMessageType) => void; resendMessage?: (message: SendableMessageType) => void; setQuoteMessage?: (message: SendableMessageType) => void; setSupposedHover?: (bool: boolean) => void; onReplyInThread?: (props: { message: SendableMessageType; }) => void; onMoveToParentMessage?: () => void; renderMenuItem?: (props: MessageMenuRenderMenuItemProps) => ReactElement; } export declare function MessageMenu(props: MessageMenuProps): ReactElement | null; export default MessageMenu;