Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Action message component

Gabe Kangas6a5bdd04693f
diff --git a/web/components/chat/ChatAction/ChatActionMessage.module.scss b/web/components/chat/ChatAction/ChatActionMessage.module.scss
new file mode 100644
index 0000000000..f7971ebd08
--- /dev/null
+++ b/web/components/chat/ChatAction/ChatActionMessage.module.scss
@@ -0,0 +1,4 @@
+.chatAction {
+ padding: 5px;
+ text-align: center;
+}
diff --git a/web/components/chat/ChatAction/ChatActionMessage.tsx b/web/components/chat/ChatAction/ChatActionMessage.tsx
new file mode 100644
index 0000000000..3ad56c248c
--- /dev/null
+++ b/web/components/chat/ChatAction/ChatActionMessage.tsx
@@ -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} />;
+}