UNPKG

@smitch/fluid

Version:

A Next/React ui-component libray.

13 lines (12 loc) 601 B
'use client'; import { jsx as _jsx } from "react/jsx-runtime"; import { Polyline, Popup } from 'react-leaflet'; var MapLine = function (_a) { var positions = _a.positions, _b = _a.color, color = _b === void 0 ? '#3388ff' : _b, _c = _a.weight, weight = _c === void 0 ? 3 : _c, dashArray = _a.dashArray, popupContent = _a.popupContent; return (_jsx(Polyline, { positions: positions, pathOptions: { color: color, weight: weight, dashArray: dashArray, }, children: popupContent && _jsx(Popup, { children: popupContent }) })); }; export default MapLine;