"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _common = require("./../common");

var _classnames = _interopRequireDefault(require("classnames"));

var _react = _interopRequireDefault(require("react"));

var _one = require("remax/one");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

/*
 * @Author: codingfly
 * @Description:
 * @Date: 2021-08-04 14:29:13
 * @LastEditTime: 2021-09-06 09:02:51
 * @FilePath: \young\components\part-title\index.tsx
 */
var prefixCls = (0, _common.getPrefixCls)('part-title');

var PartTitle = function PartTitle(props) {
  var className = props.className,
      color = props.color,
      backgroundColor = props.backgroundColor,
      style = props.style,
      children = props.children;
  return /*#__PURE__*/_react.default.createElement(_one.View, {
    className: (0, _classnames.default)(prefixCls, className),
    style: style
  }, /*#__PURE__*/_react.default.createElement(_one.View, {
    className: "".concat(prefixCls, "-block"),
    style: {
      backgroundColor: backgroundColor
    }
  }), /*#__PURE__*/_react.default.createElement(_one.View, {
    className: "".concat(prefixCls, "-title"),
    style: {
      color: color
    }
  }, children));
};

var _default = PartTitle;
exports.default = _default;