copyToClipboard(plainKey)}
/>
);
}
renderButtons(privateKey, address, hideModal) {
return (
{!privateKey && (
)}
{privateKey ? (
) : (
)}
);
}
render() {
const {
selectedIdentity,
warning,
showAccountDetailModal,
hideModal,
previousModalState,
} = this.props;
const { name, address } = selectedIdentity;
const { privateKey, showWarning } = this.state;
return (
showAccountDetailModal()}
>
{name}
{this.context.t('showPrivateKeys')}
{this.renderPasswordLabel(privateKey)}
{this.renderPasswordInput(privateKey)}
{showWarning && warning ? (
{warning}
) : null}
{this.context.t('privateKeyWarning')}
{this.renderButtons(privateKey, address, hideModal)}
);
}
}