/**
 * 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.
 */

const require_runtime = require("../../_virtual/_rolldown/runtime.js");
const require_index = require("../../node_modules/classnames/index.js");
const require_settings = require("../../settings.js");
const require_devtools = require("../../global/js/utils/devtools.js");
let react = require("react");
react = require_runtime.__toESM(react);
let prop_types = require("prop-types");
prop_types = require_runtime.__toESM(prop_types);
//#region src/components/Guidebanner/GuidebannerElement.tsx
/**
* Copyright IBM Corp. 2023, 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__ */ require_runtime.__toESM(require_index.default);
const blockClass = `${require_settings.pkg.prefix}--guidebanner__element`;
const componentName = "GuidebannerElement";
/**
* The GuidebannerElement is a required child component of the Guidebanner,
* and acts as a container for a CarouselItem.
*/
const GuidebannerElement = react.default.forwardRef(({ button, className, description, title, ...rest }, ref) => {
	return /* @__PURE__ */ react.default.createElement("div", {
		...rest,
		className: (0, import_classnames.default)(blockClass, className),
		ref,
		...require_devtools.getDevtoolsProps(componentName)
	}, title && /* @__PURE__ */ react.default.createElement("h2", { className: `${blockClass}-title` }, title), description && /* @__PURE__ */ react.default.createElement("p", { className: `${blockClass}-content` }, description), button && /* @__PURE__ */ react.default.createElement("div", { className: `${blockClass}-buttons` }, button));
});
GuidebannerElement.displayName = componentName;
GuidebannerElement.propTypes = {
	/**
	* An optional button can be rendered below the description.
	* This can be a link, button, Coachmark button, etc.
	*/
	button: prop_types.default.node,
	/**
	* Provide an optional class to be applied to the containing node.
	*/
	className: prop_types.default.string,
	/**
	* The description of the element.
	*/
	description: prop_types.default.oneOfType([prop_types.default.string, prop_types.default.node]).isRequired,
	/**
	* The title of the element.
	*/
	title: prop_types.default.string
};
//#endregion
exports.GuidebannerElement = GuidebannerElement;
