softchatjs-react
Version:
Install the softchat-js SDKs
50 lines (47 loc) • 1.55 kB
text/typescript
import * as react_jsx_runtime from 'react/jsx-runtime';
import { Dispatch, SetStateAction } from 'react';
import ChatClient, { Message } from 'softchatjs-core';
declare const regex: {
URL_REGEX: RegExp;
};
type ConversationProps = {
message: Message;
index: number;
onPress: (event: any, index: number, message: Message) => void;
show: boolean;
setEditDetails: Dispatch<SetStateAction<{
message: Message;
isEditing?: boolean;
isReplying?: boolean;
} | undefined>>;
canEdit?: boolean;
recipientTyping?: boolean;
showEmojiPanel?: boolean;
openEmojiPanel: () => void;
optionsMenuRef: any;
emojiPickerRef: any;
mousePosition: {
x: number;
y: number;
};
client: ChatClient;
conversationId: string;
closeOptionsMenu: () => void;
scrollToQuote: (id: string) => void;
textInputRef: any;
recipientId: string;
hideAvartar: boolean;
setShowEmojiPanel: Dispatch<SetStateAction<boolean>>;
};
declare const MessageItem: (props: ConversationProps) => react_jsx_runtime.JSX.Element;
declare const QuotedMessage: ({ message, scrollToQuote, }: {
message: Message;
scrollToQuote: (id: string) => void;
}) => react_jsx_runtime.JSX.Element;
declare const FormattedText: ({ content }: {
content: string;
}) => react_jsx_runtime.JSX.Element;
declare const TypingIndicator: ({ message }: {
message: Message;
}) => react_jsx_runtime.JSX.Element;
export { FormattedText, MessageItem, QuotedMessage, TypingIndicator, regex };