import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
// (C) 2022-2025 GoodData Corporation
import { TooltipIcon } from "./TooltipIcon.js";
/**
 * @internal
 */
export function Title({ title, tooltip }) {
    return (_jsxs(_Fragment, { children: [title ? _jsx("span", { className: "gd-widget-title", children: title }) : null, tooltip ? _jsx(TooltipIcon, { text: tooltip, iconClass: "gd-icon-circle-question" }) : null] }));
}
