import { FC } from 'react'; import { TeamOutlined } from '@ant-design/icons'; import { ChatUserBadge } from '../ChatUserBadge/ChatUserBadge'; import styles from './ChatJoinMessage.module.scss'; export type ChatJoinMessageProps = { isAuthorModerator: boolean; userColor: number; displayName: string; }; export const ChatJoinMessage: FC = ({ isAuthorModerator, userColor, displayName, }) => { const color = `var(--theme-color-users-${userColor})`; return (
{displayName} {isAuthorModerator && ( )} {' '} joined the chat.
); };