(
createElement: (
props: PropsWithoutRef<P>,
context: LeafletContextInterface,
) => LeafletElement<E>,
useLifecycle: DivOverlayLifecycleHook<E, PropsWithoutRef<P>>,
)
| 66 | } |
| 67 | |
| 68 | export function createOverlayComponent< |
| 69 | E extends DivOverlay, |
| 70 | P extends LayerWithChildrenProps, |
| 71 | >( |
| 72 | createElement: ( |
| 73 | props: PropsWithoutRef<P>, |
| 74 | context: LeafletContextInterface, |
| 75 | ) => LeafletElement<E>, |
| 76 | useLifecycle: DivOverlayLifecycleHook<E, PropsWithoutRef<P>>, |
| 77 | ) { |
| 78 | const useElement = createElementHook(createElement) |
| 79 | const useOverlay = createDivOverlayHook(useElement, useLifecycle) |
| 80 | return createDivOverlayComponent(useOverlay) |
| 81 | } |
| 82 | |
| 83 | export function createPathComponent< |
| 84 | E extends FeatureGroup | Path, |
no test coverage detected
searching dependent graphs…