// @flow import React from 'react' import styled from 'styled-components' import Box from 'components/base/Box' import QRCode from 'components/base/QRCode' import Icon from 'components/base/Icon' import CopyToClipboard from 'components/base/CopyToClipboard' import Text from 'components/base/Text' import Print from 'components/base/Print' type Props = { amount?: string, address: string, } export const AddressBox = styled(Box).attrs({ borderWidth: 1, borderColor: 'mouse', bg: 'cream', p: 2, })` border-radius: 3px; cursor: text; text-align: center; user-select: text; word-break: break-all; ` const Action = styled(Box).attrs({ align: 'center', color: 'mouse', flex: 1, flow: 1, fontSize: 0, })` font-weight: bold; text-align: center; cursor: pointer; text-transform: uppercase; &:hover { color: ${p => p.theme.colors.grey}; } ` const ReceiveBox = ({ amount, address }: Props) => ( {'Current address'} {address} ( {'Copy'} )} /> ( {isLoading ? '...' : 'Print'} )} /> {'Share'} ) ReceiveBox.defaultProps = { amount: undefined, } export default ReceiveBox