import _extends from "@babel/runtime/helpers/esm/extends"; import * as React from 'react'; import { useGridRootProps } from '../hooks/utils/useGridRootProps'; import { jsx as _jsx } from "react/jsx-runtime"; import { jsxs as _jsxs } from "react/jsx-runtime"; export const GridHeader = /*#__PURE__*/React.forwardRef(function GridHeader(props, ref) { const rootProps = useGridRootProps(); return /*#__PURE__*/_jsxs("div", _extends({ ref: ref }, props, { children: [/*#__PURE__*/_jsx(rootProps.components.PreferencesPanel, _extends({}, rootProps.componentsProps?.preferencesPanel)), rootProps.components.Toolbar && /*#__PURE__*/_jsx(rootProps.components.Toolbar, _extends({}, rootProps.componentsProps?.toolbar))] })); });