@smitch/fluid
Version:
A Next/React ui-component libray.
12 lines (11 loc) • 524 B
JavaScript
'use client';
import { jsx as _jsx } from "react/jsx-runtime";
import { Rectangle, Popup } from 'react-leaflet';
var MapRectangle = function (_a) {
var bounds = _a.bounds, _b = _a.color, color = _b === void 0 ? '#3388ff' : _b, fillColor = _a.fillColor, popupContent = _a.popupContent;
return (_jsx(Rectangle, { bounds: bounds, pathOptions: {
color: color,
fillColor: fillColor,
}, children: popupContent && _jsx(Popup, { children: popupContent }) }));
};
export default MapRectangle;