import React from 'react' import PropTypes from 'prop-types' import classnames from 'classnames' import Identicon from '../../../identicon' const ConfirmPageContainerSummary = props => { const { action, title, titleComponent, subtitle, subtitleComponent, hideSubtitle, className, identiconAddress, nonce, assetImage, } = props return (
{ action }
{ nonce && (
{ `#${nonce}` }
) }
{ identiconAddress && ( ) }
{ titleComponent || title }
{ hideSubtitle ||
{ subtitleComponent || subtitle }
}
) } ConfirmPageContainerSummary.propTypes = { action: PropTypes.string, title: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), titleComponent: PropTypes.node, subtitle: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), subtitleComponent: PropTypes.node, hideSubtitle: PropTypes.bool, className: PropTypes.string, identiconAddress: PropTypes.string, nonce: PropTypes.string, assetImage: PropTypes.string, } export default ConfirmPageContainerSummary