Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});

const tslib_1 = require("tslib");

const react_1 = tslib_1.__importDefault(require("react"));

const exotic_1 = require("exotic");

const renderProps_1 = require("./renderProps");

class ShoppingList extends react_1.default.Component {
  render() {
    const _a = this.props,
          {
      shoppingList,
      renderShoppingListItem
    } = _a,
          remainingProps = tslib_1.__rest(_a, ["shoppingList", "renderShoppingListItem"]);

    const view = exotic_1.isArray(shoppingList) && shoppingList.map((item, index) => renderShoppingListItem(Object.assign({
      item,
      index
    }, remainingProps)));
    return view;
  }

}

ShoppingList.defaultProps = {
  className: '',
  renderShoppingListItem: renderProps_1.defaultRenderShoppingListItem
};
exports.ShoppingList = ShoppingList;
exports.default = ShoppingList;