"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _propTypes = _interopRequireDefault(require("prop-types"));
var _react = _interopRequireDefault(require("react"));
var _MyTag = _interopRequireDefault(require("../_component/MyTag"));
var _Duration = _interopRequireDefault(require("../_component/Duration"));
var _config = require("./config");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
var Status = function Status(_ref) {
  var info = _ref.info;
  return /*#__PURE__*/_react["default"].createElement("div", {
    className: "ol-map-analysis-sedimentation-status"
  }, /*#__PURE__*/_react["default"].createElement(_MyTag["default"], {
    text: _config.SedimentationTypeName[info.sedimentationType],
    color: _config.SedimentationTypeColor[info.sedimentationType]
  }), info.sedimentationType !== _config.SedimentationType.ZC && /*#__PURE__*/_react["default"].createElement(_Duration["default"], {
    label: '淤积时长',
    durationHour: info.durationHour
  }));
};
Status.propTypes = {
  info: _propTypes["default"].object,
  showTime: _propTypes["default"].bool
};
var _default = exports["default"] = Status;
//# sourceMappingURL=Status.js.map
