/*
 * @Author: codingfly
 * @Description:
 * @Date: 2021-08-04 14:29:13
 * @LastEditTime: 2021-09-06 09:02:51
 * @FilePath: \young\components\part-title\index.tsx
 */
import { getPrefixCls } from './../common';
import classNames from 'classnames';
import React from 'react';
import { View } from 'remax/one';
var prefixCls = 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.createElement(View, {
    className: classNames(prefixCls, className),
    style: style
  }, /*#__PURE__*/React.createElement(View, {
    className: "".concat(prefixCls, "-block"),
    style: {
      backgroundColor: backgroundColor
    }
  }), /*#__PURE__*/React.createElement(View, {
    className: "".concat(prefixCls, "-title"),
    style: {
      color: color
    }
  }, children));
};

export default PartTitle;