import React from "react";
import PropTypes from "prop-types";
import Feature from "ol/Feature";
const propTypes = {
  feature: PropTypes.instanceOf(Feature).isRequired
};
function CasaRoutePopup(_ref) {
  let {
    feature
  } = _ref;
  const route = feature.get("route");
  return /*#__PURE__*/React.createElement("div", {
    className: "wkp-casa-route-popup"
  }, route.popupContent.map(item => /*#__PURE__*/React.createElement("div", {
    className: "wkp-casa-route-popup-row",
    key: item
  }, /*#__PURE__*/React.createElement("pre", null, item))));
}
CasaRoutePopup.propTypes = propTypes;
CasaRoutePopup.hideHeader = feature => {
  const route = feature.get("route");
  return !route.popupTitle;
};
CasaRoutePopup.renderTitle = feature => {
  const route = feature.get("route");
  return route.popupTitle;
};
export default CasaRoutePopup;
//# sourceMappingURL=CasaRoutePopup.js.map