UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

40 lines (39 loc) 773 B
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