"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _react = _interopRequireDefault(require("react"));
var _useSettings2 = _interopRequireDefault(require("../../../vm-hooks/useSettings"));
var _vmSubTitle = _interopRequireDefault(require("../../../vm-sub-title"));
var _vmInfoCollection = _interopRequireDefault(require("../../../vm-info-collection"));
var _Rules = _interopRequireDefault(require("./Rules"));
var _TodayWork = _interopRequireDefault(require("./TodayWork"));
var _api = require("../../api");
require("./index.less");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var BaseInfo = function BaseInfo(props) {
  var id = props.id;
  var _useSettings = (0, _useSettings2["default"])(),
    theme = _useSettings.theme;
  var _BaseService$useBaseI = _api.BaseService.useBaseInfo(id),
    baseInfo = _BaseService$useBaseI.baseInfo,
    rules = _BaseService$useBaseI.rules,
    todayWorkRes = _BaseService$useBaseI.todayWorkRes;
  return /*#__PURE__*/_react["default"].createElement("div", {
    className: "road-baseContent ".concat(theme)
  }, /*#__PURE__*/_react["default"].createElement("div", {
    className: "base-left"
  }, /*#__PURE__*/_react["default"].createElement("div", {
    className: "base-left-top"
  }, /*#__PURE__*/_react["default"].createElement(_vmSubTitle["default"], {
    title: "\u57FA\u672C\u4FE1\u606F"
  }), /*#__PURE__*/_react["default"].createElement(_vmInfoCollection["default"], {
    data: baseInfo,
    horizontal: true,
    gap: 24
  })), /*#__PURE__*/_react["default"].createElement("div", {
    className: "base-left-bottom"
  }, /*#__PURE__*/_react["default"].createElement(_Rules["default"], {
    rules: rules
  }))), /*#__PURE__*/_react["default"].createElement(_TodayWork["default"], {
    data: todayWorkRes
  }));
};
var _default = BaseInfo;
exports["default"] = _default;
//# sourceMappingURL=index.js.map
