This commit is contained in:
2025-10-18 01:46:46 +03:00
commit 9baa68258e
74 changed files with 29125 additions and 0 deletions

View File

@ -0,0 +1,8 @@
import { DataTable, type DataTableProps } from 'mantine-datatable';
// важна стрелочная форма для корректного дженерика в JSX
const BaseTable = <T,>(props: DataTableProps<T>) => {
return <DataTable withRowBorders withColumnBorders withTableBorder {...props} />;
};
export default BaseTable;

View File

@ -0,0 +1,5 @@
// helpers.ts (или рядом)
import type { DataTableProps } from 'mantine-datatable';
// Берём ИМЕННО ту ветку union, где есть `columns`
export type ColumnsMode<T> = Extract<DataTableProps<T>, { columns: unknown }>;