Repository URL to install this package:
|
Version:
4.0.59 ▾
|
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
const tslib_1 = require("tslib");
const react_1 = tslib_1.__importDefault(require("react"));
const TextPlaceholder_1 = require("../TextPlaceholder");
const styled_1 = require("./styled");
function defaultRenderItem(item, props) {
const {
width,
height
} = props;
return react_1.default.createElement(TextPlaceholder_1.TextPlaceholder, {
width: width,
height: height
});
}
exports.defaultRenderItem = defaultRenderItem;
function defaultRenderList(props) {
const {
renderItem,
list
} = props,
remainingProps = tslib_1.__rest(props, ["renderItem", "list"]);
return list.map((item, index) => react_1.default.createElement(styled_1.ItemPanel, null, renderItem(item, props)));
}
exports.defaultRenderList = defaultRenderList;
function defaultRenderWrapper(props) {
const {
children,
isHorizontalView,
className
} = props;
return react_1.default.createElement(styled_1.ListWrapper, {
isHorizontalView: isHorizontalView,
className: className
}, children);
}
exports.defaultRenderWrapper = defaultRenderWrapper; //# sourceMappingURL=renderProps.js.map