(source: string)
| 71 | |
| 72 | // 获取溯源类型的图标和描述 |
| 73 | const getSourceIcon = (source: string) => { |
| 74 | switch (source) { |
| 75 | case 'user': |
| 76 | return <UserOutlined /> |
| 77 | case 'object_to_crosstab': |
| 78 | return <NodeIndexOutlined /> |
| 79 | case 'crosstab_to_chat': |
| 80 | return <TableOutlined /> |
| 81 | case 'object_to_chat': |
| 82 | return <NodeIndexOutlined /> |
| 83 | case 'chat_to_object': |
| 84 | return <MessageOutlined /> |
| 85 | default: |
| 86 | return <InfoCircleOutlined /> |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | const getSourceDescription = (source: string) => { |
| 91 | switch (source) { |
no outgoing calls
no test coverage detected