"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var React = require("react");
var moment = require("moment");
function OrderListItem(_a) {
    var onOrderItemClick = _a.onOrderItemClick, orderListItem = _a.orderListItem;
    var date = moment(orderListItem.orderedDate).format("DD.MM.YYYY HH:MM");
    return (React.createElement(React.Fragment, null,
        React.createElement("tr", { onClick: function () { return onOrderItemClick(orderListItem.id); } },
            React.createElement("td", { className: "order__list__item" }, orderListItem.id),
            React.createElement("td", { className: "order__list__price" },
                orderListItem.totalPrice,
                " K\u010D"),
            React.createElement("td", null, orderListItem.orderState),
            React.createElement("td", null, orderListItem.paymentType),
            React.createElement("td", null, orderListItem.orderItemsCount),
            React.createElement("td", null, date))));
}
exports.default = OrderListItem;
//# sourceMappingURL=OrderListItem.js.map