Repository URL to install this package:
|
Version:
0.9.5 ▾
|
ui-component-library
/
dist
/
components
/
molecules
/
SelectDropDown
/
Option
/
_circularRenderProp.js
|
|---|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Option_1 = require("./Option");
function renderItem(item, props, state) {
const onClick = item.onClick;
console.debug('[Option] renderItem');
console.dir(item);
console.log('[Component] Options circularRenderProps', item, props);
return Option_1.Option.from(Object.assign({}, item, { onClick }), Object.assign({}, props, { label: item.label, value: item.label }));
}
exports.renderItem = renderItem;
//# sourceMappingURL=_circularRenderProp.js.map