import React from 'react'

class CouponWrapper extends React.Component<any, any> {
    constructor(props) {
        super(props);
    }

    componentDidMount(): void {

    }

    onClick() {
        this.props.onClick ? this.props.onClick : ''
    }

    render() {
        let props = this.props;
        return (
            <div className={'MCoupon_item' + (this.props.className ? ' ' + this.props.className : '')}
                 style={this.props.style ? this.props.style : null}
                 onClick={this.onClick.bind(this)}
            >
                {this.props.children}
            </div>

        );
    }
}

export default CouponWrapper;