import React from "react";
import PropTypes from "prop-types";
import Feature from "ol/Feature";
function DrawPopup(_ref) {
  let {
    feature
  } = _ref;
  const descr = feature.get("description");
  if (!descr) {
    return null;
  }
  return /*#__PURE__*/React.createElement("div", {
    // eslint-disable-next-line react/no-danger
    dangerouslySetInnerHTML: {
      __html: descr
    }
  });
}
DrawPopup.propTypes = {
  feature: PropTypes.instanceOf(Feature).isRequired
};
const composed = /*#__PURE__*/React.memo(DrawPopup);
composed.renderTitle = feature => feature.get("name");
export default composed;
//# sourceMappingURL=DrawPopup.js.map