MCPcopy Create free account
hub / github.com/experdot/pointer / getSourceIcon

Function getSourceIcon

src/renderer/src/components/common/PageLineageDisplay.tsx:73–88  ·  view source on GitHub ↗
(source: string)

Source from the content-addressed store, hash-verified

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) {

Callers 1

PageLineageDisplayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected