mirror of
https://github.com/owncast/owncast.git
synced 2024-10-10 19:16:02 +00:00
Action message component
This commit is contained in:
parent
3d9fdab743
commit
756ab368c1
@ -0,0 +1,4 @@
|
|||||||
|
.chatAction {
|
||||||
|
padding: 5px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
13
web/components/chat/ChatAction/ChatActionMessage.tsx
Normal file
13
web/components/chat/ChatAction/ChatActionMessage.tsx
Normal 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} />;
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user