<DataGrid
  loading={loading}
  pagination
  slots={{
    pagination: CustomPagination,
  }}
  {...data}
  initialState={{
    ...data.initialState,
    pagination: { paginationModel: { pageSize: 25 } },
  }}
/>