import React from "react";
import "./index.less";

export default class TipLabel extends React.Component {
  render() {
    return (
      <div className="tipLabelWrapper">
        <div className="titleWrapper">
          <span className="title">{this.props.title ? this.props.title : "小提示"}</span>
        </div>
        <div className="tipContentWrapper">
          {this.props.tipList && this.props.tipList.map(item => <div className="tipContentItem">{item}</div>)}
          {this.props.children}
        </div>
      </div>
    );
  }
}
