import React from 'react'
import LookMore from '../../../common/product/lookMore/index'

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

    componentDidMount(): void {

    }

    lookMore() {
        let props = this.props;
        props.lookMore ? props.lookMore() : ''
    }

    render() {
        let props = this.props;
        let content = this.props.content;
        return (
            <div>
                <div className={'shop-product-container shop-product-groupbuy-container'}>
                    <div
                        className={'shop-product-wrapper' + (this.props.className ? ' ' + this.props.className : '')}>
                        {this.props.children}
                    </div>
                    <div className={'clearfix'}></div>
                </div>
                {
                    props.lookBtn == 1 && props.addStyle == 2 && this.props.children ?
                        <LookMore lookMore={this.lookMore.bind(this)}></LookMore> : ''
                }
            </div>

        );
    }
}

export default ProWrapper;