@mui/x-data-grid
Version:
The Community plan edition of the Data Grid components (MUI X).
9 lines • 389 B
JavaScript
import * as React from 'react';
export const QuickFilterContext = /*#__PURE__*/React.createContext(undefined);
export function useQuickFilterContext() {
const context = React.useContext(QuickFilterContext);
if (context === undefined) {
throw new Error('MUI X: Missing context. Quick Filter subcomponents must be placed within a <QuickFilter /> component.');
}
return context;
}