import { MRT_SelectCheckbox } from '../../components/inputs/MRT_SelectCheckbox'; import { type MRT_ColumnDef, type MRT_RowData, type MRT_StatefulTableOptions, } from '../../types'; import { defaultDisplayColumnProps } from '../../utils/displayColumn.utils'; export const getMRT_RowSelectColumnDef = ( tableOptions: MRT_StatefulTableOptions, ): MRT_ColumnDef => { const { enableMultiRowSelection, enableSelectAll } = tableOptions; return { Cell: ({ row, staticRowIndex, table }) => ( ), Header: enableSelectAll && enableMultiRowSelection ? ({ table }) => : undefined, grow: false, ...defaultDisplayColumnProps({ header: 'select', id: 'mrt-row-select', size: enableSelectAll ? 60 : 70, tableOptions, }), }; };