Action message component

This commit is contained in:
Gabe Kangas 2022-07-14 20:12:42 -07:00
parent 3d9fdab743
commit 756ab368c1
No known key found for this signature in database
GPG key ID: 9A56337728BC81EA
2 changed files with 17 additions and 0 deletions

View file

@ -0,0 +1,4 @@
.chatAction {
padding: 5px;
text-align: center;
}

View file

@ -0,0 +1,13 @@
import s from './ChatActionMessage.module.scss';
/* eslint-disable react/no-danger */
interface Props {
body: string;
}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
export default function ChatActionMessage(props: Props) {
const { body } = props;
return <div dangerouslySetInnerHTML={{ __html: body }} className={s.chatAction} />;
}