/**
 * 钟是志
 * 2019年9月4日
 * 块级Title
 * */
import React, {Component, Fragment} from 'react';
import { WingBlank,WhiteSpace } from 'antd-mobile';
import styles from './index.less';
import PropTypes from 'prop-types';

const BlockTitle = (props) => {
  const { sideColor, title } = props;
  return (
    <WingBlank>
      <div className={styles.title}>
        <span style={{backgroundColor: sideColor}}>
          &nbsp;
        </span>
        <span className={styles.titleSpan}>{props.title}</span>
      </div>
      <WhiteSpace/>
    </WingBlank>

  );
};

BlockTitle.propTypes = {
  title: PropTypes.string.isRequired, //title
  sideColor: PropTypes.string,
};
BlockTitle.defaultProps = {
  title: '基础信息完善',
  sideColor: '#0F91FF',
};

export default BlockTitle;
