@mui/x-data-grid
Version:
The Community plan edition of the MUI X Data Grid components.
12 lines • 690 B
text/typescript
import type * as React from 'react';
import type { GridApiCommunity } from "../../../models/api/gridApiCommunity.mjs";
import type { DataGridProcessedProps } from "../../../models/props/DataGridProps.mjs";
import type { GridOverlayType, GridLoadingOverlayVariant } from "./gridOverlaysInterfaces.mjs";
/**
* Uses the grid state to determine which overlay to display.
* Returns the active overlay type and the active loading overlay variant.
*/
export declare const useGridOverlays: (apiRef: React.RefObject<GridApiCommunity>, props: Pick<DataGridProcessedProps, "slotProps">) => {
overlayType: NonNullable<GridOverlayType>;
loadingOverlayVariant: GridLoadingOverlayVariant | null;
};