@netdata/charts
Version:
Netdata frontend SDK and chart utilities
18 lines • 545 B
JavaScript
import React from "react";
import { useAttributeValue } from "../provider";
import Row from "./row";
import Info from "./info";
import { jsx as _jsx } from "react/jsx-runtime";
var Context = function Context() {
var contextScope = useAttributeValue("contextScope");
return /*#__PURE__*/_jsx(Row, {
title: "Plugin and chart context",
color: "key",
"data-testid": "chartDetails-context",
children: /*#__PURE__*/_jsx(Info, {
title: "Context",
children: contextScope.join(", ")
})
});
};
export default Context;