@mui/x-data-grid
Version:
The community edition of the data grid component (MUI X).
17 lines (16 loc) • 753 B
JavaScript
import _extends from "@babel/runtime/helpers/esm/extends";
import * as React from 'react';
import { useGridApiContext } from '../../hooks/utils/useGridApiContext';
import { useGridRootProps } from '../../hooks/utils/useGridRootProps';
import { jsx as _jsx } from "react/jsx-runtime";
export function GridHeaderPlaceholder() {
var _rootProps$components;
const apiRef = useGridApiContext();
const rootProps = useGridRootProps();
const headerRef = React.useRef(null);
apiRef.current.headerRef = headerRef;
return /*#__PURE__*/_jsx("div", {
ref: headerRef,
children: /*#__PURE__*/_jsx(rootProps.components.Header, _extends({}, (_rootProps$components = rootProps.componentsProps) == null ? void 0 : _rootProps$components.header))
});
}