(
props: PropsWithoutRef<P>,
context: LeafletContextInterface,
)
| 36 | P extends ControlOptions, |
| 37 | >(createInstance: (props: PropsWithoutRef<P>) => E) { |
| 38 | function createElement( |
| 39 | props: PropsWithoutRef<P>, |
| 40 | context: LeafletContextInterface, |
| 41 | ): LeafletElement<E> { |
| 42 | return createElementObject(createInstance(props), context) |
| 43 | } |
| 44 | const useElement = createElementHook(createElement) |
| 45 | const useControl = createControlHook(useElement) |
| 46 | return createLeafComponent(useControl) |
no test coverage detected
searching dependent graphs…