<Snackbar open={inProgress} TransitionComponent={SlideTransition}>
  <Alert severity="info" icon={<CircularProgress size={24} />}>
    Exporting Excel file...
  </Alert>
</Snackbar>
<DataGridPremium
  {...data}
  loading={loading}
  rowHeight={38}
  checkboxSelection
  slots={{ toolbar: CustomToolbar }}
  onExcelExportStateChange={(newState) =>
    setInProgress(newState === 'pending')
  }
/>