@netdata/charts
Version:
Netdata frontend SDK and chart utilities
26 lines • 837 B
JavaScript
import React from "react";
import styled from "styled-components";
import { Flex, TextMicro, TextSmall } from "@netdata/netdata-ui";
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
var GridRow = styled(Flex).attrs({
"data-testid": "chartPopover-label"
}).withConfig({
displayName: "label__GridRow",
componentId: "sc-1j7ox7-0"
})(["display:contents;"]);
var Label = function Label(_ref) {
var label = _ref.label,
value = _ref.value;
return /*#__PURE__*/_jsxs(GridRow, {
children: [/*#__PURE__*/_jsx(TextMicro, {
padding: [1, 0],
wordBreak: "break-word",
children: label
}), /*#__PURE__*/_jsx(TextSmall, {
strong: true,
wordBreak: "break-word",
children: (value === null || value === void 0 ? void 0 : value.join(", ")) || "-"
})]
});
};
export default Label;