/* @flow */ import React from 'react'; import styled from 'styled-components'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { FormattedMessage } from 'react-intl'; import { Button, Icon, P, H5, colors, icons } from 'trezor-ui-components'; import { FONT_SIZE } from 'config/variables'; import * as WalletActions from 'actions/WalletActions'; import type { State, Dispatch } from 'flowtype'; import l10nMessages from './index.messages'; type OwnProps = {||}; type StateProps = {||}; type DispatchProps = {| close: typeof WalletActions.hideBetaDisclaimer, |}; type Props = {| ...OwnProps, ...StateProps, ...DispatchProps |}; const Wrapper = styled.div` width: 100%; min-height: 100vh; top: 0px; left: 0px; background: rgba(0, 0, 0, 0.35); display: flex; flex-direction: column; align-items: center; overflow: auto; padding: 20px; `; const ModalWindow = styled.div` margin: auto; position: relative; border-radius: 4px; background-color: ${colors.WHITE}; text-align: center; width: 100%; max-width: 620px; padding: 30px 48px; `; const StyledP = styled(P)` padding: 10px 0px; font-size: ${FONT_SIZE.BASE}; `; const StyledButton = styled(Button)` margin: 10px 0px; width: 100%; `; const StyledIcon = styled(Icon)` position: relative; top: -1px; `; const BetaDisclaimer = (props: Props) => (
), TR_TREZOR_BETA_WALLET: ( ), }} /> ), TR_TREZOR_BETA_WALLET: ( ), }} /> ), TR_TREZOR_BETA_WALLET: ( ), }} />
); export default connect( null, (dispatch: Dispatch): DispatchProps => ({ close: bindActionCreators(WalletActions.hideBetaDisclaimer, dispatch), }) )(BetaDisclaimer);