@talend/react-components
Version:
Set of react components.
22 lines • 623 B
JavaScript
import { Trans } from 'react-i18next';
import { RatioBar as RatioBarDS } from '@talend/design-system';
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
export const RatioBar = ({
amount,
total,
errors = 0,
hideLabel = false,
notApplicableLabel
}) => /*#__PURE__*/_jsx(RatioBarDS, {
amount: amount,
errors: errors,
hideLabel: hideLabel,
notApplicableLabel: notApplicableLabel || /*#__PURE__*/_jsxs(Trans, {
i18nKey: "tui-components:NA",
children: [/*#__PURE__*/_jsx("strong", {
children: "N"
}), "/A"]
}),
total: total
});
//# sourceMappingURL=RatioBar.component.js.map