"use strict";
var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        if (typeof b !== "function" && b !== null)
            throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
var React = require("react");
var ShoppingCartListItem_1 = require("./ShoppingCartListItem");
var ShoppingCartList = /** @class */ (function (_super) {
    __extends(ShoppingCartList, _super);
    function ShoppingCartList() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    ShoppingCartList.prototype.render = function () {
        var _a = this.props, cartItems = _a.cartItems, onAddToCartClick = _a.onAddToCartClick, onDeleteFromCartClick = _a.onDeleteFromCartClick, onRemoveFromCartClick = _a.onRemoveFromCartClick;
        return (React.createElement(React.Fragment, null,
            React.createElement("div", { className: "shoping__cart__table" },
                React.createElement("table", null,
                    React.createElement("thead", null,
                        React.createElement("tr", null,
                            React.createElement("th", { className: "shoping__product" }, "Produkty"),
                            React.createElement("th", { className: "shoping__price" }, "Cena (kus)"),
                            React.createElement("th", { className: "shoping__count" }, "Mno\u017Estv\u00ED"),
                            React.createElement("th", { className: "shoping__totalprice" }, "Celkov\u00E1 cena"),
                            React.createElement("th", null))),
                    React.createElement("tbody", null, cartItems.map(function (cartItem) {
                        return React.createElement(ShoppingCartListItem_1.default, { key: "cartItem-" + cartItem.productID, cartItem: cartItem, onAddToCartClick: onAddToCartClick, onDeleteFromCartClick: onDeleteFromCartClick, onRemoveFromCartClick: onRemoveFromCartClick });
                    }))))));
    };
    return ShoppingCartList;
}(React.Component));
exports.default = ShoppingCartList;
//# sourceMappingURL=ShoppingCartList.js.map