/**
 * 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";
import { Link } from "@carbon/react";

//#region src/components/Guidebanner/GuidebannerElementLink.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__ */ __toESM(require_classnames());
const blockClass = `${pkg.prefix}--guidebanner__element-link`;
const componentName = "GuidebannerElementLink";
/**
* A link styled specifically for the GuidebannerElement.
*/
const GuidebannerElementLink = React.forwardRef(({ children, className, ...rest }, ref) => {
	return /* @__PURE__ */ React.createElement(Link, {
		...rest,
		className: (0, import_classnames.default)(blockClass, className),
		kind: "ghost",
		ref,
		role: "link",
		size: "md",
		...getDevtoolsProps(componentName)
	}, children);
});
GuidebannerElementLink.displayName = componentName;
GuidebannerElementLink.propTypes = {
	children: PropTypes.node.isRequired,
	className: PropTypes.string
};

//#endregion
export { GuidebannerElementLink };