(glyphMap: Record<string, number>)
| 41 | import { Fontello, FontelloGlyphs, IcoMoon, IcoMoonGlyphs } from './CustomFonts.ts'; |
| 42 | |
| 43 | const groupGlyphNames = (glyphMap: Record<string, number>) => { |
| 44 | const result: Record<number, string[]> = {}; |
| 45 | |
| 46 | Object.entries(glyphMap).forEach(([glyphName, glyphValue]) => { |
| 47 | result[glyphValue] ||= []; |
| 48 | |
| 49 | result[glyphValue].push(glyphName); |
| 50 | }); |
| 51 | |
| 52 | return Object.values(result); |
| 53 | }; |
| 54 | |
| 55 | export const iconSets = { |
| 56 | AntD: { component: AntDesign, glyphNames: groupGlyphNames(AntDesignGlyphs), meta: undefined }, |
no outgoing calls
no test coverage detected
searching dependent graphs…