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 styled_1 = require("./styled");
class Cell extends react_1.default.PureComponent {
render() {
const {
children,
colSpan,
totalColumns,
className,
nowrap
} = this.props;
const attributes = {
className,
colSpan,
totalColumns
}; // @todo render prop
const Box = nowrap ? react_1.default.Fragment : styled_1.StyledInnerCell;
return react_1.default.createElement(styled_1.StyledCell, Object.assign({}, attributes), react_1.default.createElement(Box, null, children));
}
}
Cell.defaultProps = {
className: ''
};
exports.Cell = Cell;
exports.default = Cell; //# sourceMappingURL=Cell.js.map