MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / getFileIcon

Function getFileIcon

frontend/src/tools/fileManager.ts:166–170  ·  view source on GitHub ↗
(name: string, type: number)

Source from the content-addressed store, hash-verified

164 ["UNKNOWN", FileUnknownOutlined]
165]);
166export const getFileIcon = (name: string, type: number) => {
167 name = filterFileName(name, true);
168 if (type === 0) return FolderOutlined;
169 return fileType.get(name) || FileOutlined;
170};

Callers

nothing calls this directly

Calls 2

filterFileNameFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected