import React from 'react'

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

    componentDidMount(): void {

    }

    render() {
        let data = this.props.data;
        if (data.showPrice == 1) {
            return (
                <span className={'shop-product-price-wrapper'}>
                    {this.props.children}
                </span>
            );
        } else {
            return null;
        }

    }
}

export default ShopPriceWrapper;