"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.SubTitle2 = SubTitle2;
exports["default"] = void 0;
var _react = _interopRequireDefault(require("react"));
var _useSettings3 = _interopRequireDefault(require("../vm-hooks/useSettings"));
require("./style");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
function SubTitle(props) {
  var _useSettings = (0, _useSettings3["default"])(),
    theme = _useSettings.theme;
  var _props$title = props.title,
    title = _props$title === void 0 ? '基本信息' : _props$title,
    extra = props.extra,
    _props$extraStyle = props.extraStyle,
    extraStyle = _props$extraStyle === void 0 ? {} : _props$extraStyle;
  return /*#__PURE__*/_react["default"].createElement("div", {
    className: "sub-title ".concat(theme)
  }, title, extra ? (/*#__PURE__*/_react["default"].createElement("div", {
    className: "extra",
    style: Object.assign({}, extraStyle)
  }, extra)) : null);
}
var _default = exports["default"] = SubTitle;
function SubTitle2(props) {
  var _useSettings2 = (0, _useSettings3["default"])(),
    theme = _useSettings2.theme;
  var _props$title2 = props.title,
    title = _props$title2 === void 0 ? '基本信息' : _props$title2,
    _props$style = props.style,
    style = _props$style === void 0 ? {} : _props$style,
    extra = props.extra,
    _props$extraStyle2 = props.extraStyle,
    extraStyle = _props$extraStyle2 === void 0 ? {} : _props$extraStyle2;
  return /*#__PURE__*/_react["default"].createElement("div", {
    className: "sub-title2 ".concat(theme),
    style: style
  }, title, extra ? (/*#__PURE__*/_react["default"].createElement("div", {
    className: "extra",
    style: Object.assign({}, extraStyle)
  }, extra)) : null);
}
//# sourceMappingURL=index.js.map
