mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 12:39:49 +08:00
e047bb166f
close #3800
17 lines
397 B
JavaScript
17 lines
397 B
JavaScript
import React from 'react';
|
|
|
|
export default ({ prev, next }) => (
|
|
<section className="prev-next-nav">
|
|
{prev
|
|
? React.cloneElement(prev.props.children || prev.children[0], {
|
|
className: 'prev-page',
|
|
})
|
|
: null}
|
|
{next
|
|
? React.cloneElement(next.props.children || next.children[0], {
|
|
className: 'next-page',
|
|
})
|
|
: null}
|
|
</section>
|
|
);
|