|
|
|
|
|
|
|
|
import CreateAgentModal from './create-agent-modal'; |
|
|
import CreateAgentModal from './create-agent-modal'; |
|
|
import GraphAvatar from './graph-avatar'; |
|
|
import GraphAvatar from './graph-avatar'; |
|
|
|
|
|
|
|
|
|
|
|
import DOMPurify from 'dompurify'; |
|
|
import styles from './index.less'; |
|
|
import styles from './index.less'; |
|
|
|
|
|
|
|
|
const { Title, Text, Paragraph } = Typography; |
|
|
const { Title, Text, Paragraph } = Typography; |
|
|
|
|
|
|
|
|
</Flex> |
|
|
</Flex> |
|
|
<div className={styles.agentDescription}> |
|
|
<div className={styles.agentDescription}> |
|
|
<Paragraph ellipsis={{ tooltip: x.description, rows: 5 }}> |
|
|
<Paragraph ellipsis={{ tooltip: x.description, rows: 5 }}> |
|
|
{x.description} |
|
|
|
|
|
|
|
|
<div |
|
|
|
|
|
dangerouslySetInnerHTML={{ |
|
|
|
|
|
__html: DOMPurify.sanitize(x.description), |
|
|
|
|
|
}} |
|
|
|
|
|
></div> |
|
|
</Paragraph> |
|
|
</Paragraph> |
|
|
</div> |
|
|
</div> |
|
|
{selectedId === x.id && ( |
|
|
{selectedId === x.id && ( |