import React from 'react';
import PropTypes from 'prop-types';
const ConfirmPageContainerNavigation = (props) => {
const {
onNextTx,
totalTx,
positionOfCurrentTx,
nextTxId,
prevTxId,
showNavigation,
firstTx,
lastTx,
ofText,
requestsWaitingText,
} = props;
return (
onNextTx(firstTx)}
>
onNextTx(prevTxId)}
>
{positionOfCurrentTx} {ofText} {totalTx}
{requestsWaitingText}
onNextTx(nextTxId)}
>
onNextTx(lastTx)}
>
);
};
ConfirmPageContainerNavigation.propTypes = {
totalTx: PropTypes.number,
positionOfCurrentTx: PropTypes.number,
onNextTx: PropTypes.func,
nextTxId: PropTypes.string,
prevTxId: PropTypes.string,
showNavigation: PropTypes.bool,
firstTx: PropTypes.string,
lastTx: PropTypes.string,
ofText: PropTypes.string,
requestsWaitingText: PropTypes.string,
};
export default ConfirmPageContainerNavigation;