import { memo } from 'react';
import dayjs from 'dayjs';
import clsx from 'clsx';
import localizedFormat from 'dayjs/plugin/localizedFormat';
dayjs.extend(localizedFormat);
import Text from './Text';
import { useAppSelector } from '../../../app/store';
export interface IWidgetMessage {
mid: number,
uid: number,
host?: boolean,
type?: "text",
content: string,
create_time: number,
sending: boolean
}
const Time = ({ time }: { time: number }) => {
return ;
};
const Index = (props: IWidgetMessage) => {
const { logo } = useAppSelector(store => store.server);
const { host = false, type = "text", content, uid, create_time, sending } = props;
let contentContainer = null;
switch (type) {
case "text":
contentContainer =