UNPKG

@mrii/react-table-builder

Version:
20 lines (16 loc) 611 B
'use strict'; var react = require('react'); var index = require('../../../utils/omit-nil/index.js'); var index$1 = require('../../../hooks/use-add-table-column/index.js'); const textColumnValueFormatter = (_)=>({ value })=>index.omitNil(value, value); const TextColumn = /*#__PURE__*/ react.memo(function TextColumn(props) { index$1.useAddTableColumn({ type: 'string', valueFormatter: textColumnValueFormatter(), ...props }); return null; }); exports.TextColumn = TextColumn; exports.textColumnValueFormatter = textColumnValueFormatter; //# sourceMappingURL=index.js.map