import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
// (C) 2025 GoodData Corporation
import { useIntl } from "react-intl";
import { MetricBar } from "../components/bars/MetricBar.js";
import { KdaBar } from "../components/KdaBar.js";
import { useKdaState } from "../providers/KdaState.js";
export function MetricsBar() {
    const intl = useIntl();
    const { state } = useKdaState();
    return (_jsx(KdaBar, { title: intl.formatMessage({ id: "kdaDialog.dialog.bars.metric.title" }), content: _jsx(_Fragment, { children: state.definition ? _jsx(MetricBar, { definition: state.definition }) : null }) }));
}
//# sourceMappingURL=MetricsBar.js.map