MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / getIcon

Function getIcon

frontend/src/utils/file.ts:62–67  ·  view source on GitHub ↗
(extension: string)

Source from the content-addressed store, hash-verified

60};
61
62export function getIcon(extension: string): string {
63 if (icons.get(extension) != undefined) {
64 return String(icons.get(extension));
65 }
66 return 'p-file-normal';
67}
68
69export const getFileType = (extension: string) => {
70 let type = 'text';

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected