MCPcopy Create free account
hub / github.com/codealong-dev/ride-sharing / MapClickHandlerProps

Interface MapClickHandlerProps

web/src/components/MapClickHandler.ts:3–5  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { useMapEvents } from 'react-leaflet'
2
3interface MapClickHandlerProps {
4 onClick: (e: L.LeafletMouseEvent) => void;
5}
6
7export function MapClickHandler({ onClick }: MapClickHandlerProps) {
8 useMapEvents({

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected