// @flow import React from 'react'; import Button from 'component/button'; import Address from 'component/address'; import * as icons from 'constants/icons'; type Props = { checkAddressIsMine: string => void, receiveAddress: string, getNewAddress: () => void, gettingNewAddress: boolean, }; class WalletAddress extends React.PureComponent { componentWillMount() { const { checkAddressIsMine, receiveAddress, getNewAddress } = this.props; if (!receiveAddress) { getNewAddress(); } else { checkAddressIsMine(receiveAddress); } } render() { const { receiveAddress, getNewAddress, gettingNewAddress } = this.props; return (
{__('Receive Credits')}

{__('Use this wallet address to receive credits sent by another user (or yourself).')}

{__( 'You can generate a new address at any time, and any previous addresses will continue to work. Using multiple addresses can be helpful for keeping track of incoming payments from multiple sources.' )}

); } } export default WalletAddress;