<DetailPanelDataCache.Provider value={detailPanelDataCache}>
  <DataGridPro
    columns={columns}
    rows={rows}
    getDetailPanelHeight={getDetailPanelHeight}
    getDetailPanelContent={getDetailPanelContent}
    onDetailPanelExpandedRowIdsChange={handleDetailPanelExpansionChange}
  />
</DetailPanelDataCache.Provider>