1 | import classNames from 'classnames';
|
2 | import * as React from 'react';
|
3 | import { useBootstrapPrefix } from './ThemeProvider';
|
4 | import PageItem, { Ellipsis, First, Last, Next, Prev } from './PageItem';
|
5 | import { jsx as _jsx } from "react/jsx-runtime";
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 | const Pagination = React.forwardRef(({
|
16 | bsPrefix,
|
17 | className,
|
18 | size,
|
19 | ...props
|
20 | }, ref) => {
|
21 | const decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'pagination');
|
22 | return _jsx("ul", {
|
23 | ref: ref,
|
24 | ...props,
|
25 | className: classNames(className, decoratedBsPrefix, size && `${decoratedBsPrefix}-${size}`)
|
26 | });
|
27 | });
|
28 | Pagination.displayName = 'Pagination';
|
29 | export default Object.assign(Pagination, {
|
30 | First,
|
31 | Prev,
|
32 | Ellipsis,
|
33 | Item: PageItem,
|
34 | Next,
|
35 | Last
|
36 | }); |
\ | No newline at end of file |