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

Function getNodeIcon

src/renderer/src/components/pages/object/ObjectTreeNode.tsx:44–55  ·  view source on GitHub ↗
(type: string)

Source from the content-addressed store, hash-verified

42
43 // 获取节点类型图标
44 const getNodeIcon = (type: string) => {
45 switch (type) {
46 case 'entity':
47 return <FileTextOutlined />
48 case 'event':
49 return <CalendarOutlined />
50 case 'relation':
51 return <ApiOutlined />
52 default:
53 return <FileTextOutlined />
54 }
55 }
56
57 // 获取节点类型颜色
58 const getNodeTypeColor = (type: string) => {

Callers 1

ObjectTreeNodeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected