import React from 'react' import PropTypes from 'prop-types' import { FormattedMessage } from 'react-intl' import { Box, Flex, Text } from 'rebass' import BigArrowLeft from 'components/Icon/BigArrowLeft' import { Button } from 'components/UI' import messages from './messages' /** * Buttons for Pay. */ class PayButtons extends React.PureComponent { static propTypes = { disabled: PropTypes.bool, nextButtonText: PropTypes.node, previousStep: PropTypes.func, processing: PropTypes.bool, showBack: PropTypes.bool, showSubmit: PropTypes.bool } static defaultProps = { disabled: false, nextButtonText: , previousStep: () => ({}), processing: false, showBack: true, showSubmit: true } render() { const { disabled, nextButtonText, previousStep, processing, showBack, showSubmit, ...rest } = this.props return ( {showBack && ( )} {showSubmit && ( )} ) } } export default PayButtons