import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import React from 'react';
import './index.less';

var SkuItem = function (_React$Component) {
    _inherits(SkuItem, _React$Component);

    function SkuItem() {
        _classCallCheck(this, SkuItem);

        return _possibleConstructorReturn(this, (SkuItem.__proto__ || Object.getPrototypeOf(SkuItem)).apply(this, arguments));
    }

    _createClass(SkuItem, [{
        key: 'render',
        value: function render() {
            var data = this.props.data;

            return React.createElement(
                'div',
                { className: 'sku-item-warp' },
                React.createElement(
                    'div',
                    null,
                    React.createElement('img', { className: 'sku-item-img', src: data && data.imgSrc })
                ),
                React.createElement(
                    'div',
                    { className: 'sku-item-description' },
                    data && data.description
                ),
                React.createElement(
                    'div',
                    { className: 'sku-item-price' },
                    data && data.price
                )
            );
        }
    }]);

    return SkuItem;
}(React.Component);

export default SkuItem;