Repository URL to install this package:
|
Version:
3.0.1 ▾
|
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
const tslib_1 = require("tslib");
const react_1 = tslib_1.__importDefault(require("react"));
const ProductItem_1 = require("../ProductItem");
/**
* render List Wrapper
*/
function defaultRenderProductItem(itemDetails) {
// console.log('[defaultRenderProductItem] hasSingleProduct', itemDetails.hasSingleProduct)
const {
renderProductItemButtons,
renderProductItemForm,
isSubscriptionItem
} = itemDetails,
remainingProps = tslib_1.__rest(itemDetails, ["renderProductItemButtons", "renderProductItemForm", "isSubscriptionItem"]);
return react_1.default.createElement(ProductItem_1.ProductItem, Object.assign({
itemDetails: itemDetails,
renderProductItemButtons: renderProductItemButtons,
renderProductItemForm: renderProductItemForm,
isSubscriptionItem: isSubscriptionItem
}, remainingProps)); // return <ProductItem itemDetails={itemDetails} />
}
exports.defaultRenderProductItem = defaultRenderProductItem; //# sourceMappingURL=renderProps.js.map