(library: string)
| 20 | } |
| 21 | |
| 22 | export function generateHtmlComp(library: string) { |
| 23 | if (['a', 'img', 'div', 'span', 'svg'].includes(library)) { |
| 24 | return forwardRef((props, ref) => { |
| 25 | return createElement(library, { ref, ...props }, props.children); |
| 26 | }); |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | export function getSubComponent(library: any, paths: string[]) { |
| 31 | const l = paths.length; |
no outgoing calls
no test coverage detected
searching dependent graphs…