UNPKG

@smitch/fluid

Version:

A Next/React ui-component libray.

9 lines (8 loc) 430 B
'use client'; import { jsx as _jsx } from "react/jsx-runtime"; import { Polygon, Popup } from 'react-leaflet'; var MapPolygon = function (_a) { var positions = _a.positions, fill = _a.fill, stroke = _a.stroke, popupContent = _a.popupContent; return (_jsx(Polygon, { positions: positions, fillColor: fill, stroke: stroke, children: popupContent && _jsx(Popup, { children: popupContent }) })); }; export default MapPolygon;