Function
createIcon
(
IconModule: Record<string, ElementType>,
iconName: string
)
Source from the content-addressed store, hash-verified
| 77 | * Creates an icon element for a component |
| 78 | */ |
| 79 | const createIcon = ( |
| 80 | IconModule: Record<string, ElementType>, |
| 81 | iconName: string |
| 82 | ) => { |
| 83 | const IconComponent = IconModule[iconName]; |
| 84 | return <IconComponent width={16} height={16} />; |
| 85 | }; |
| 86 | |
| 87 | // Operating System dropdown items |
| 88 | type ActualSystems = Omit<typeof systems, 'OTHER' | 'LOADING'>; |
Tested by
no test coverage detected