(names: string[])
| 19 | }; |
| 20 | |
| 21 | export const getComponentsByNames = (names: string[]): RegistryItem[] => { |
| 22 | const componentsMap = new Map(components.map((comp) => [comp.name, comp])); |
| 23 | |
| 24 | return names |
| 25 | .map((name) => componentsMap.get(name)) |
| 26 | .filter((comp): comp is RegistryItem => comp !== undefined); |
| 27 | }; |
| 28 | |
| 29 | export const getAvailableTags = ( |
| 30 | selectedTags: RegistryTag[], |
no outgoing calls
no test coverage detected