/* @flow */ import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { getOldWalletUrl } from 'utils/url'; import { H5, P, Icon, Button, Link, colors, icons } from 'trezor-ui-components'; import type { TrezorDevice } from 'flowtype'; import type { Props as BaseProps } from '../../Container'; type Props = { onReceiveConfirmation: $ElementType< $ElementType, 'onReceiveConfirmation' >, device: ?TrezorDevice, }; const Wrapper = styled.div` max-width: 370px; padding: 30px 48px; `; const StyledLink = styled(Link)` position: absolute; right: 15px; top: 15px; `; const BackupButton = styled(Button)` width: 100%; margin-bottom: 10px; `; const ProceedButton = styled(Button)` background: transparent; border-color: ${colors.WARNING_PRIMARY}; color: ${colors.WARNING_PRIMARY}; &:focus, &:hover, &:active { color: ${colors.WHITE}; background: ${colors.WARNING_PRIMARY}; box-shadow: none; } `; const StyledP = styled(P)` /* boost-specificity hack to override P base styling */ && { padding-bottom: 20px; } `; const Row = styled.div` display: flex; flex-direction: column; `; const Confirmation = (props: Props) => ( props.onReceiveConfirmation(false)}>
Your Trezor is not backed up
If your device is ever lost or damaged, your funds will be lost. Backup your device first, to protect your coins against such events. props.onReceiveConfirmation(false)}> Create a backup in 3 minutes props.onReceiveConfirmation(true)}> Show address, I will take the risk
); Confirmation.propTypes = { onReceiveConfirmation: PropTypes.func.isRequired, }; export default Confirmation;