@smitch/fluid
Version:
A lightweight, Tailwind-powered React/Next.js UI component library.
12 lines • 568 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;
//# sourceMappingURL=LazyMapRectangle.js.map