Debian Codegraph @

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

raw
1 import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
2 /** Allows more customization of the pagination dropdown toggle. The following properties
3 * should be passed into the pagination component's toggleTemplate property.
4 */
5 import { Fragment } from 'react';
6 export const ToggleTemplate = ({ firstIndex = 0, lastIndex = 0, itemCount = 0, itemsTitle = 'items', ofWord = 'of' }) => (_jsxs(Fragment, { children: [_jsxs("b", { children: [firstIndex, " - ", lastIndex] }), ' ', ofWord, " ", _jsx("b", { children: itemCount }), " ", itemsTitle] }));
7 ToggleTemplate.displayName = 'ToggleTemplate';
8 //# sourceMappingURL=ToggleTemplate.js.map