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    
@filerobot/common / lib / VirtualList / VirtualListItem.js
Size: Mime:
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
import { memo, cloneElement } from 'react';
var VirtualLayoutItem = function VirtualLayoutItem(_ref) {
  var _cloneElement;
  var item = _ref.item,
    children = _ref.children,
    itemPropName = _ref.itemPropName,
    index = _ref.index;
  var childrenWithItem = /*#__PURE__*/cloneElement(children, (_cloneElement = {}, _defineProperty(_cloneElement, itemPropName, item), _defineProperty(_cloneElement, "index", index), _cloneElement));
  return childrenWithItem;
};
export default /*#__PURE__*/memo(VirtualLayoutItem);