import React from 'react'; import { Space, Typography } from '@arco-design/web-react'; import { IconCommand, IconStar } from '@arco-design/web-react/icon'; import cs from '../../../utils/classnames'; import styles from './style/index.module.less'; export interface Message { id: string; username: string; content: string; time: string; isCollect: boolean; } export interface MessageItemProps { data: Message; } export default function MessageItem(props: MessageItemProps) { const { data } = props; const classNames = cs(styles['message-item'], { [styles['message-item-collected']]: data.isCollect, }); return (