import { MRT_DefaultDisplayColumn } from '../useMRT_TableOptions'; import { type MRT_ColumnDef, type MRT_RowData, type MRT_StatefulTableOptions, } from '../../types'; import { defaultDisplayColumnProps } from '../../utils/displayColumn.utils'; const blankColProps = { children: null, style: { minWidth: 0, padding: 0, width: 0, }, }; export const getMRT_RowSpacerColumnDef = ( tableOptions: MRT_StatefulTableOptions, ): MRT_ColumnDef | null => { return { ...defaultDisplayColumnProps({ id: 'mrt-row-spacer', size: 0, tableOptions, }), grow: true, ...MRT_DefaultDisplayColumn, mantineTableBodyCellProps: blankColProps, mantineTableFooterCellProps: blankColProps, mantineTableHeadCellProps: blankColProps, }; };