Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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 图标
38
export
function
getTabIcon(
type
: string): ReactNode {
39
return
tabTypeRegistry.get(
type
)?.icon ?? null
40
}
41
42
// 尝试恢复已关闭的 tab
43
export
function
tryRestoreTab(
type
: string, dataId?: string): Tab | null {
Callers
1
Tabs
Function · 0.90
Calls
1
get
Method · 0.65
Tested by
no test coverage detected