@mui/x-data-grid
Version:
The Community plan edition of the Data Grid components (MUI X).
8 lines • 363 B
JavaScript
import { createSelectorV8 } from "../../../utils/createSelector.js";
export const gridPreferencePanelStateSelector = state => state.preferencePanel;
export const gridPreferencePanelSelectorWithLabel = createSelectorV8(gridPreferencePanelStateSelector, (panel, labelId) => {
if (panel.open && panel.labelId === labelId) {
return true;
}
return false;
});