synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
40 lines (39 loc) • 773 B
JavaScript
import u from "pluralize";
import { upperFirst as A } from "lodash-es";
const f = "to Download List";
function i(r, o, e) {
return r ? o.length : e;
}
function s(r, o, e, l, n) {
if (!r && !o)
return `all ${u(n)}`;
const t = i(
o,
e,
l
);
return t != null ? `${t.toLocaleString()} ${u(
n,
t
)}` : u(n);
}
function $(r, o, e, l, n) {
if (!r && !o)
return `Add All ${A(
u(n)
)} ${f}`;
const t = i(
o,
e,
l
);
return t != null ? `Add ${t.toLocaleString()} Selected ${A(
u(n, t)
)} ${f}` : `Add ${f}`;
}
export {
$ as getNumberOfResultsToAddToDownloadListCopy,
i as getNumberOfResultsToInvokeAction,
s as getNumberOfResultsToInvokeActionCopy
};
//# sourceMappingURL=TopLevelControlsUtils.js.map