Repository URL to install this package:
|
Version:
2.1.6 ▾
|
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
const tslib_1 = require("tslib");
const react_1 = tslib_1.__importDefault(require("react"));
const ShoppingList_1 = require("../../abstractions/ShoppingList");
const mobx_react_1 = require("xmobx/mobx-react");
const renderProps_1 = require("./renderProps");
const state_1 = require("./state");
let ShoppingList = class ShoppingList extends react_1.default.Component {
constructor() {
super(...arguments);
this.shoppingListCollapseState = new state_1.ShoppingListCollapseState();
}
render() {
return react_1.default.createElement(ShoppingList_1.ShoppingList, Object.assign({
shoppingListCollapseState: this.shoppingListCollapseState
}, this.props));
}
};
ShoppingList.defaultProps = {
className: '',
// renderProps
renderShoppingListItem: renderProps_1.defaultRenderShoppingListItem
};
ShoppingList = tslib_1.__decorate([mobx_react_1.observer], ShoppingList);
exports.ShoppingList = ShoppingList;
exports.default = ShoppingList;