@mui/x-data-grid-premium
Version:
The Premium plan edition of the MUI X Data Grid Components.
13 lines (12 loc) • 660 B
JavaScript
'use client';
import _formatErrorMessage from "@mui/x-internals/formatErrorMessage";
import * as React from 'react';
export const ResizablePanelContext = /*#__PURE__*/React.createContext(undefined);
if (process.env.NODE_ENV !== "production") ResizablePanelContext.displayName = "ResizablePanelContext";
export function useResizablePanelContext() {
const context = React.useContext(ResizablePanelContext);
if (context === undefined) {
throw new Error(process.env.NODE_ENV !== "production" ? 'MUI X: Missing context. ResizablePanel subcomponents must be placed within a <ResizablePanel /> component.' : _formatErrorMessage(116));
}
return context;
}