easemob-chat-uikit
Version:
   ![GitHub last c
27 lines (26 loc) • 996 B
TypeScript
import React from 'react';
import { BaseMessageProps, renderUserProfileProps } from '../baseMessage';
import type { ImageMessageType } from '../types/messageType';
export interface ImageMessageProps extends BaseMessageProps {
imageMessage: ImageMessageType;
prefix?: string;
style?: React.CSSProperties;
className?: string;
bubbleClass?: string;
type?: 'primary' | 'secondly';
onClickImage?: (url: string) => void;
nickName?: string;
renderUserProfile?: (props: renderUserProfileProps) => React.ReactNode;
imgProps?: React.ImgHTMLAttributes<HTMLImageElement>;
}
export interface ImagePreviewProps {
visible: boolean;
previewImageUrl: string;
alt?: string;
onCancel?: () => void;
}
export declare const ImagePreview: (props: ImagePreviewProps) => import("react/jsx-runtime").JSX.Element;
declare const _default: ((props: ImageMessageProps) => import("react/jsx-runtime").JSX.Element) & {
displayName: string;
};
export default _default;