Debian Codegraph @

node/@patternfly/react-core/dist/js/components/Pagination/ToggleTemplate.js

raw
1 "use strict";
2 Object.defineProperty(exports, "__esModule", { value: true });
3 exports.ToggleTemplate = void 0;
4 const jsx_runtime_1 = require("react/jsx-runtime");
5 /** Allows more customization of the pagination dropdown toggle. The following properties
6 * should be passed into the pagination component's toggleTemplate property.
7 */
8 const react_1 = require("react");
9 const ToggleTemplate = ({ firstIndex = 0, lastIndex = 0, itemCount = 0, itemsTitle = 'items', ofWord = 'of' }) => ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("b", { children: [firstIndex, " - ", lastIndex] }), ' ', ofWord, " ", (0, jsx_runtime_1.jsx)("b", { children: itemCount }), " ", itemsTitle] }));
10 exports.ToggleTemplate = ToggleTemplate;
11 exports.ToggleTemplate.displayName = 'ToggleTemplate';
12 //# sourceMappingURL=ToggleTemplate.js.map