@talend/react-components
Version:
Set of react components.
29 lines (28 loc) • 807 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.RatioBar = void 0;
var _reactI18next = require("react-i18next");
var _designSystem = require("@talend/design-system");
var _jsxRuntime = require("react/jsx-runtime");
const RatioBar = ({
amount,
total,
errors = 0,
hideLabel = false,
notApplicableLabel
}) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_designSystem.RatioBar, {
amount: amount,
errors: errors,
hideLabel: hideLabel,
notApplicableLabel: notApplicableLabel || /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactI18next.Trans, {
i18nKey: "tui-components:NA",
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("strong", {
children: "N"
}), "/A"]
}),
total: total
});
exports.RatioBar = RatioBar;
//# sourceMappingURL=RatioBar.component.js.map