@appbuckets/react-ui
Version:
Just Another React UI Framework
60 lines (54 loc) • 1.29 kB
JavaScript
;
var React = require('react');
var TableRow = require('../../Table/TableRow.js');
function _interopNamespace(e) {
if (e && e.__esModule) return e;
var n = Object.create(null);
if (e) {
Object.keys(e).forEach(function (k) {
if (k !== 'default') {
var d = Object.getOwnPropertyDescriptor(e, k);
Object.defineProperty(
n,
k,
d.get
? d
: {
enumerable: true,
get: function () {
return e[k];
},
}
);
}
});
}
n['default'] = e;
return Object.freeze(n);
}
var React__namespace = /*#__PURE__*/ _interopNamespace(React);
/* --------
* Component Definition
* -------- */
var RxTableBodyRow = function (props) {
var children = props.children,
className = props.className,
isVirtualized = props.isVirtualized,
onClick = props.onClick,
style = props.style;
// ----
// Component Render
// ----
return React__namespace.createElement(
TableRow,
{
as: isVirtualized ? 'div' : 'tr',
className: className,
style: style,
onClick: onClick,
},
children
);
};
RxTableBodyRow.displayName = 'RxTableBodyRow';
module.exports = RxTableBodyRow;