Repository URL to install this package:
Version:
0.9.6 ▾
|
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const react_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 = {
// nowrap: true,
};
exports.Cell = Cell;
exports.default = Cell;
//# sourceMappingURL=Cell.js.map