<DataGrid
  {...data}
  loading={loading}
  columns={columns}
  slots={{ toolbar: GridToolbar }}
  filterModel={filterModel}
  onFilterModelChange={(newFilterModel) => setFilterModel(newFilterModel)}
/>