ChatMessage
Reusable ChatMessage component
Example
import { ChatMessage } from '@lad-tech/mobydick-core';
export const ChatWidget = () => {
return (
<ChatMessage isMe={true} time={'12-12-1998'} message={'message'} />
);
};
Props
RequiredisMe
TYPE |
---|
boolean |
Place message to right or left
Requiredtime
TYPE |
---|
string mating RegExp /^([01]\d|2[0-3]):[0-5]\d$/ |
Time of message
message
TYPE |
---|
string |
Text of message
image
TYPE |
---|
FileHandle | URI |
image for message