import LeftAvatar from '../CopilotAvatar'; import Message from '../Message'; import styles from './style.module.less'; import { AgentType } from '../../type'; import { isMobile } from '../../../utils/utils'; type Props = { currentAgent?: AgentType; onSendMsg: (value: string) => void; }; const AgentTip: React.FC = ({ currentAgent, onSendMsg }) => { if (!currentAgent) { return null; } return (
{!isMobile && }
您好,智能助理【{currentAgent.name} 】将与您对话,试着问:
{currentAgent.examples?.length > 0 ? ( currentAgent.examples.map(example => (
{ onSendMsg(example); }} > “{example}”
)) ) : (
{currentAgent.description}
)}
); }; export default AgentTip;