Support changing your own name and handling name change events

This commit is contained in:
Gabe Kangas
2022-05-26 13:52:04 -07:00
parent 5a51b2d779
commit 1d213b71d4
12 changed files with 147 additions and 100 deletions

View File

@@ -1,11 +1,11 @@
import { ChatMessage } from '../../interfaces/chat-message.model';
/* eslint-disable react/no-danger */
interface Props {
// eslint-disable-next-line react/no-unused-prop-types
message: ChatMessage;
body: string;
}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
export default function ChatSystemMessage(props: Props) {
return <div>Component goes here</div>;
export default function ChatActionMessage(props: Props) {
const { body } = props;
return <div dangerouslySetInnerHTML={{ __html: body }} />;
}