Outlook_Addin_LLM/node_modules/@fluentui/react-table/lib-commonjs/hooks/createColumn.js

35 lines
1.1 KiB
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "createTableColumn", {
enumerable: true,
get: function() {
return createTableColumn;
}
});
const defaultCompare = ()=>0;
const defaultRenderCell = ()=>{
if (process.env.NODE_ENV !== 'production') {
// eslint-disable-next-line no-console
console.warn('@fluentui/react-table: You are using the default column renderCell function that renders null');
}
return null;
};
const defaultRenderHeaderCell = ()=>{
if (process.env.NODE_ENV !== 'production') {
// eslint-disable-next-line no-console
console.warn('@fluentui/react-table: You are using the default column renderHeaderCell function that renders null');
}
return null;
};
function createTableColumn(options) {
const { columnId, renderCell = defaultRenderCell, renderHeaderCell = defaultRenderHeaderCell, compare = defaultCompare } = options;
return {
columnId,
renderCell,
renderHeaderCell,
compare
};
}