import React, { FunctionComponent } from 'react'; import { Polygon as LeafletPolygon } from 'react-leaflet'; import { Coordinate } from 'types'; import { createLeafletLatLngFromCoordinate } from '../helpers'; import { MAP } from '../constants'; interface Props { coordinates: Coordinate[]; hasError: boolean; } export const BoundaryPolygon: FunctionComponent = ({ coordinates, hasError }) => ( );