UNPKG

@ethora/chat-component

Version:

1. npm create vite@latest 2. select name of project, select type (react/js) 3. cd project-name 4. npm i 5. npm i @ethora/chat-component 6. go to file src/App.tsx and replace it with this code

26 lines (25 loc) 572 B
import { IMessage } from './message.model'; export interface DeleteModal { isDeleteModal: boolean; roomJid?: string; messageId?: string; } export interface EditAction { isEdit: boolean; roomJid?: string; messageId?: string; text?: string; } export interface ReactionAction { roomJID: string; messageId: string; from: string; reactions: string[]; latestReactionTimestamp?: string; data?: Record<string, string>; } export interface AddRoomMessageAction { roomJID: string; message: IMessage; start?: boolean; }