(componentName)
| 17 | } |
| 18 | |
| 19 | export const useComponent = (componentName) => { |
| 20 | const { components } = useContext(JSONSchemaContext) |
| 21 | return components[componentName] || null |
| 22 | } |
| 23 | |
| 24 | export const useFn = (fnName = undefined) => { |
| 25 | const { fn } = useContext(JSONSchemaContext) |
no outgoing calls
no test coverage detected
searching dependent graphs…