"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = WorkSummary;
var _react = _interopRequireDefault(require("react"));
var _vmImageText = _interopRequireDefault(require("../../../vm-image-text"));
var _util = require("../../../util");
var _useSettings2 = _interopRequireDefault(require("../../../vm-hooks/useSettings"));
var _wgcs = _interopRequireDefault(require("../../imgs/wgcs.png"));
var _ljwgts = _interopRequireDefault(require("../../imgs/ljwgts.png"));
var _ljwgsc = _interopRequireDefault(require("../../imgs/ljwgsc.png"));
var _wgcs_light = _interopRequireDefault(require("../../imgs/wgcs_light.png"));
var _ljwgts_light = _interopRequireDefault(require("../../imgs/ljwgts_light.png"));
var _ljwgsc_light = _interopRequireDefault(require("../../imgs/ljwgsc_light.png"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
/**
 * 作业统计-通用
 */

function WorkSummary(props) {
  var data = props.data;
  var _useSettings = (0, _useSettings2["default"])(),
    isDark = _useSettings.isDark;
  return /*#__PURE__*/_react["default"].createElement("div", {
    className: "work-summary"
  }, /*#__PURE__*/_react["default"].createElement(_vmImageText["default"], {
    src: isDark ? _wgcs["default"] : _wgcs_light["default"],
    name: "\u8FDD\u89C4\u6B21\u6570",
    value: (data === null || data === void 0 ? void 0 : data.total) || 0,
    unit: "\u6B21",
    style: {
      margin: '0 0 12px 0',
      width: '50%'
    }
  }), /*#__PURE__*/_react["default"].createElement(_vmImageText["default"], {
    src: isDark ? _ljwgts["default"] : _ljwgts_light["default"],
    name: "\u7D2F\u8BA1\u8FDD\u89C4\u5929\u6570",
    value: (data === null || data === void 0 ? void 0 : data.totalDays) || 0,
    unit: "\u5929",
    style: {
      margin: '0 0 12px 0',
      width: '50%'
    }
  }), /*#__PURE__*/_react["default"].createElement(_vmImageText["default"], {
    src: isDark ? _ljwgsc["default"] : _ljwgsc_light["default"],
    name: "\u7D2F\u8BA1\u8FDD\u89C4\u65F6\u957F",
    specialCase: "".concat((0, _util.secondToFormatTime)((data === null || data === void 0 ? void 0 : data.totalSeconds) || 0)),
    style: {
      margin: '0 0 12px 0',
      width: '50%'
    }
  }));
}
//# sourceMappingURL=WorkSummary.js.map
