mirror of
https://github.com/sstent/aicyclingcoach-go.git
synced 2026-01-28 01:52:41 +00:00
sync
This commit is contained in:
14
node_modules/@react-leaflet/core/lib/div-overlay.js
generated
vendored
14
node_modules/@react-leaflet/core/lib/div-overlay.js
generated
vendored
@@ -1,14 +0,0 @@
|
||||
import { useAttribution } from './attribution.js';
|
||||
import { useLeafletContext } from './context.js';
|
||||
import { useEventHandlers } from './events.js';
|
||||
import { withPane } from './pane.js';
|
||||
export function createDivOverlayHook(useElement, useLifecycle) {
|
||||
return function useDivOverlay(props, setOpen) {
|
||||
const context = useLeafletContext();
|
||||
const elementRef = useElement(withPane(props, context), context);
|
||||
useAttribution(context.map, props.attribution);
|
||||
useEventHandlers(elementRef.current, props.eventHandlers);
|
||||
useLifecycle(elementRef.current, context, props, setOpen);
|
||||
return elementRef;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user