import Markdown from "../../Common/Markdown" import React from "react" import { Image, Tooltip } from "antd" import { ClipboardIcon } from "~icons/ClipboardIcon" import { CheckIcon } from "~icons/CheckIcon" import { ArrowPathIcon } from "~icons/ArrowPathIcon" type Props = { message: string hideCopy?: boolean botAvatar?: JSX.Element userAvatar?: JSX.Element isBot: boolean name: string images?: string[] currentMessageIndex: number totalMessages: number onRengerate: () => void isProcessing: boolean webSearch?: { } } export const PlaygroundMessage = (props: Props) => { const [isBtnPressed, setIsBtnPressed] = React.useState(false) return (