import PropTypes from 'prop-types';
import React from 'react';
import classnames from 'classnames';
import Identicon from '../../../ui/identicon';
export default function AccountModalContainer(props, context) {
const {
className,
selectedIdentity,
showBackButton,
backButtonAction,
hideModal,
children,
} = props;
return (
{showBackButton && (
{context.t('back')}
)}
{children}
);
}
AccountModalContainer.contextTypes = {
t: PropTypes.func,
};
AccountModalContainer.defaultProps = {
showBackButton: false,
children: null,
backButtonAction: undefined,
};
AccountModalContainer.propTypes = {
className: PropTypes.string,
selectedIdentity: PropTypes.object.isRequired,
showBackButton: PropTypes.bool,
backButtonAction: PropTypes.func,
hideModal: PropTypes.func.isRequired,
children: PropTypes.node,
};