@smitch/fluid
Version:
A lightweight, Tailwind-powered React/Next.js UI component library.
13 lines • 640 B
JavaScript
'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;
//# sourceMappingURL=LazyMapLine.js.map