UNPKG

@amsterdam/bmi-component-library

Version:

A React component library based on ASC and Material-UI aimed at repurposing and sharing components across BMI projects

20 lines 810 B
import type { FC } from 'react'; import { GridColDef, GridRowModel } from '@mui/x-data-grid'; import 'react-loading-skeleton/dist/skeleton.css'; export type Props = { columns?: GridColDef[]; rows: GridRowModel[]; page?: number; pageSize?: number; disableFilterRow?: boolean; disableRemoval?: boolean; onRemove?: (id: string) => Promise<boolean | void>; onDownload?: (row: GridRowModel) => void; loading?: boolean; }; type Filters = Record<string, string>; export declare function paginate(rows: GridRowModel[], pageSize: number, currentPage: number): GridRowModel[]; export declare function applyFilters(rows: GridRowModel[], filters: Filters): GridRowModel[]; declare const DocumentTable: FC<Props>; export default DocumentTable; //# sourceMappingURL=DocumentTable.d.ts.map