import React, { Component } from 'react';
import './style.styl';
import Img from '../../ImgLoad/index';

class GoodsContent extends Component<any> {
    render() {
        const { goods = {}, title } = this.props;

        const images = goods.productContentImages || [];
        return (
            <div className="goods-content" id="content">
                {title ? (
                    <div className="goods-content-head">{title}</div>
                ) : null}

                <div className="plan-content">
                    {images.map((item: any, index: number) => (
                        <Img src={item} place={item} key={index} />
                    ))}
                </div>
            </div>
        );
    }
}

export default GoodsContent;
