"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _propTypes = _interopRequireDefault(require("prop-types"));
var _react = _interopRequireDefault(require("react"));
var _MyCollapse = _interopRequireDefault(require("../MyCollapse"));
var _space = _interopRequireDefault(require("antd/lib/space"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var Panel = _MyCollapse["default"].Panel;
var AnalysisDetailWrap = function AnalysisDetailWrap(props) {
  var roadName = props.roadName,
    lineNo = props.lineNo,
    header = props.header,
    children = props.children,
    extra = props.extra;
  return /*#__PURE__*/_react["default"].createElement(_MyCollapse["default"], {
    defaultActiveKey: ['1'],
    style: {
      marginTop: 16
    }
  }, /*#__PURE__*/_react["default"].createElement(Panel, {
    key: '1',
    header: header,
    extra: /*#__PURE__*/_react["default"].createElement(_space["default"], null, /*#__PURE__*/_react["default"].createElement("span", {
      style: {
        fontWeight: 'bold',
        color: '#040404'
      }
    }, "\u5F53\u524D\u7BA1\u6BB5\uFF1A".concat(roadName || '', " ").concat(lineNo || '')), extra)
  }, children));
};
AnalysisDetailWrap.propTypes = {
  roadName: _propTypes["default"].string,
  lineNo: _propTypes["default"].string,
  header: _propTypes["default"].string,
  children: _propTypes["default"].element,
  extra: _propTypes["default"].element
};
var _default = exports["default"] = AnalysisDetailWrap;
//# sourceMappingURL=index.js.map
