'use client' import type { FC } from 'react' import React from 'react' import type { IChatItem } from '../type' import s from '../style.module.css' import { Markdown } from '@/app/components/base/markdown' import ImageGallery from '@/app/components/base/image-gallery' type IQuestionProps = Pick & { imgSrcs?: string[] } const Question: FC = ({ id, content, useCurrentUserAvatar, imgSrcs }) => { const userName = '' return (
{imgSrcs && imgSrcs.length > 0 && ( )}
{useCurrentUserAvatar ? (
{userName?.[0].toLocaleUpperCase()}
) : (
)}
) } export default React.memo(Question)