import React, { Component } from 'react';
import style from './index.less';

class GeneralTreat extends Component {
    constructor(props){
        super(props);
    }

    render() {
        const { icon, titleStyle,titleBg, filter, title, generalTreat } = this.props
        return(
            generalTreat && generalTreat.content && generalTreat.content.length > 0 && <div className={style['general-wrapper']}>
                <div className={style['general-title-box']} style={titleStyle}></div>
                <div className={style['general-title']} ><img className={style['general-icon']} src={icon}/>{title}</div>
                <div className={style['general-item']} dangerouslySetInnerHTML={{__html: generalTreat.content}}>
                </div>

            </div>
        )
    }

}

export default GeneralTreat;