mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-24 09:25:15 +00:00
37 lines
1.3 KiB
JavaScript
37 lines
1.3 KiB
JavaScript
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
||
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
||
|
var _excluded = ["bsPrefix", "className", "children", "size"];
|
||
|
import classNames from 'classnames';
|
||
|
import React from 'react';
|
||
|
import { useBootstrapPrefix } from './ThemeProvider';
|
||
|
import PageItem, { Ellipsis, First, Last, Next, Prev } from './PageItem';
|
||
|
|
||
|
/**
|
||
|
* @property {PageItem} Item
|
||
|
* @property {PageItem} First
|
||
|
* @property {PageItem} Prev
|
||
|
* @property {PageItem} Ellipsis
|
||
|
* @property {PageItem} Next
|
||
|
* @property {PageItem} Last
|
||
|
*/
|
||
|
var Pagination = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
||
|
var bsPrefix = _ref.bsPrefix,
|
||
|
className = _ref.className,
|
||
|
children = _ref.children,
|
||
|
size = _ref.size,
|
||
|
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
||
|
|
||
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'pagination');
|
||
|
return /*#__PURE__*/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;
|