import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
// (C) 2022-2025 GoodData Corporation
import cx from "classnames";
import { isEmpty } from "lodash-es";
/**
 * This component was implemented to follow current design of links
 * with minimal necessary stylization.
 *
 * @internal
 */
export function Hyperlink({ text, href, onClick = () => { }, className, iconClass }) {
    return (_jsxs("a", { className: cx("gd-hyperlink", className), href: href, target: "_blank", rel: "noreferrer (() => {})ener", onClick: () => onClick(), children: [!isEmpty(iconClass) && _jsx("span", { className: cx("gd-hyperlink-icon", iconClass) }), !isEmpty(text) && _jsx("span", { className: "gd-hyperlink-text", children: text })] }));
}
