import React from "react";
import PropTypes from "prop-types";
import Feature from "ol/Feature";
const propTypes = {
  feature: PropTypes.instanceOf(Feature).isRequired
};
function BusLinePopup(_ref) {
  let {
    feature
  } = _ref;
  const props = feature.getProperties();
  return /*#__PURE__*/React.createElement("div", {
    className: "wkp-bus-line-popup"
  }, Object.entries(props).map(_ref2 => {
    let [key, value] = _ref2;
    if (!/^lines /.test(key)) {
      return null;
    }
    return /*#__PURE__*/React.createElement("div", {
      key: key
    }, /*#__PURE__*/React.createElement("div", null, key.replace("lines ", "")), /*#__PURE__*/React.createElement("div", null, value));
  }));
}
BusLinePopup.propTypes = propTypes;
export default /*#__PURE__*/React.memo(BusLinePopup);
//# sourceMappingURL=BusLinePopup.js.map