var __extends = (this && this.__extends) || (function () {
    var extendStatics = Object.setPrototypeOf ||
        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
import React, { Component } from 'react';
import './style.styl';
import Img from '../../ImgLoad/index';
var GoodsContent = /** @class */ (function (_super) {
    __extends(GoodsContent, _super);
    function GoodsContent() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    GoodsContent.prototype.render = function () {
        var _a = this.props, _b = _a.goods, goods = _b === void 0 ? {} : _b, title = _a.title;
        var 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(function (item, index) { return (<Img src={item} place={item} key={index}/>); })}
                </div>
            </div>);
    };
    return GoodsContent;
}(Component));
export default GoodsContent;
