<DataGrid
  rows={rows}
  columns={columns}
  processRowUpdate={processRowUpdate}
  onProcessRowUpdateError={handleProcessRowUpdateError}
/>
{!!snackbar && (
  <Snackbar
    open
    anchorOrigin={{ vertical: 'bottom', horizontal: 'center' }}
    onClose={handleCloseSnackbar}
    autoHideDuration={6000}
  >
    <Alert {...snackbar} onClose={handleCloseSnackbar} />
  </Snackbar>
)}