/**
 * Copyright IBM Corp. 2020, 2026
 *
 * This source code is licensed under the Apache-2.0 license found in the
 * LICENSE file in the root directory of this source tree.
 */

import { __toESM } from "../../_virtual/_rolldown/runtime.js";
import { require_classnames } from "../../node_modules/classnames/index.js";
import { pkg } from "../../settings.js";
import { getDevtoolsProps } from "../../global/js/utils/devtools.js";
import React from "react";
import PropTypes from "prop-types";

//#region src/components/FilterPanel/FilterPanel.jsx
/**
* Copyright IBM Corp. 2024, 2024
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
var import_classnames = /* @__PURE__ */ __toESM(require_classnames());
const blockClass = `${pkg.prefix}--filter-panel`;
const componentName = "FilterPanel";
/**
* The container for filter panel subcomponents.
* @deprecated This component is deprecated
*/
let FilterPanel = React.forwardRef(({ children, className, title, ...rest }, ref) => {
	return /* @__PURE__ */ React.createElement("section", {
		...rest,
		className: (0, import_classnames.default)(blockClass, className),
		ref,
		...getDevtoolsProps(componentName)
	}, title && /* @__PURE__ */ React.createElement("h1", { className: `${blockClass}__title` }, title), children);
});
FilterPanel.deprecated = {
	level: "warn",
	details: `This component is deprecated`
};
FilterPanel = pkg.checkComponentEnabled(FilterPanel, componentName);
FilterPanel.displayName = componentName;
FilterPanel.propTypes = {
	children: PropTypes.node,
	className: PropTypes.string,
	title: PropTypes.node
};

//#endregion
export { FilterPanel };