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

Function RoutingControl

web/src/components/RoutingControl.tsx:3–9  ·  view source on GitHub ↗
({ route }: {
    route: [number, number][]
})

Source from the content-addressed store, hash-verified

1import { Polyline } from "react-leaflet";
2
3export function RoutingControl({ route }: {
4 route: [number, number][]
5}) {
6 if (!route) return null
7
8 return <Polyline positions={route} color="blue" />
9}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected