Gazebo_simulation-Frontend/node_modules/react-bootstrap/esm/Pagination.js
2020-12-21 10:29:31 -05:00

36 lines
1.2 KiB
JavaScript

import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import classNames from 'classnames';
import React from 'react';
import { useBootstrapPrefix } from './ThemeProvider';
import PageItem, { First, Prev, Ellipsis, Next, Last } from './PageItem';
/**
* @property {PageItem} Item
* @property {PageItem} First
* @property {PageItem} Prev
* @property {PageItem} Ellipsis
* @property {PageItem} Next
* @property {PageItem} Last
*/
var Pagination = React.forwardRef(function (_ref, ref) {
var bsPrefix = _ref.bsPrefix,
className = _ref.className,
children = _ref.children,
size = _ref.size,
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "size"]);
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'pagination');
return React.createElement("ul", _extends({
ref: ref
}, props, {
className: classNames(className, decoratedBsPrefix, size && decoratedBsPrefix + "-" + size)
}), children);
});
Pagination.First = First;
Pagination.Prev = Prev;
Pagination.Ellipsis = Ellipsis;
Pagination.Item = PageItem;
Pagination.Next = Next;
Pagination.Last = Last;
export default Pagination;