Files
ETB/ETB-FrontEnd/node_modules/@mui/x-data-grid/modern/components/base/GridFooterPlaceholder.js
Iliyan Angelov 306b20e24a Frontend start
2025-09-14 00:54:48 +03:00

20 lines
710 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 GridFooterPlaceholder() {
const apiRef = useGridApiContext();
const rootProps = useGridRootProps();
const footerRef = React.useRef(null);
apiRef.current.footerRef = footerRef;
if (rootProps.hideFooter) {
return null;
}
return /*#__PURE__*/_jsx("div", {
ref: footerRef,
children: /*#__PURE__*/_jsx(rootProps.components.Footer, _extends({}, rootProps.componentsProps?.footer))
});
}