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

Function getTabIcon

src/renderer/src/utils/tabRegistry.ts:38–40  ·  view source on GitHub ↗
(type: string)

Source from the content-addressed store, hash-verified

36
37// 获取 tab 图标
38export function getTabIcon(type: string): ReactNode {
39 return tabTypeRegistry.get(type)?.icon ?? null
40}
41
42// 尝试恢复已关闭的 tab
43export function tryRestoreTab(type: string, dataId?: string): Tab | null {

Callers 1

TabsFunction · 0.90

Calls 1

getMethod · 0.65

Tested by

no test coverage detected