<DataGrid
  rows={rows}
  {...data}
  rowCount={rowCount}
  loading={isLoading}
  pageSizeOptions={[5]}
  paginationModel={paginationModel}
  paginationMode="server"
  onPaginationModelChange={setPaginationModel}
/>