/* eslint-disable react/no-danger */ import { Highlight } from 'react-highlighter-ts'; import { FC } from 'react'; import { ChatMessage } from '../../../interfaces/chat-message.model'; import styles from './ChatSystemMessage.module.scss'; export type ChatSystemMessageProps = { message: ChatMessage; highlightString: string; }; export const ChatSystemMessage: FC = ({ message: { body, user: { displayName }, }, highlightString, }) => (
{displayName}
);