import { jsx as _jsx } from "react/jsx-runtime";
// (C) 2025 GoodData Corporation
import cx from "classnames";
import { UiChip, UiTooltip } from "@gooddata/sdk-ui-kit";
export function MetricBar(props) {
    const { title, alias } = props.definition.metric.measure;
    return (_jsx("div", { className: cx("gd-kda-dialog-bar__metric"), children: _jsx(UiTooltip, { arrowPlacement: "top-start", content: title, optimalPlacement: true, triggerBy: ["hover", "focus"], anchor: _jsx(UiChip, { label: alias ?? title ?? "", iconBefore: "metric", isExpandable: false, isDisabled: true }) }) }));
}
//# sourceMappingURL=MetricBar.js.map