import React from 'react'; import Link from 'component/link'; import { getExampleAddress } from 'util/shape_shift'; import { Submit, FormRow } from 'component/form'; import type { ShapeShiftFormValues, Dispatch } from 'redux/actions/shape_shift'; import ShiftMarketInfo from './market_info'; type ShapeShiftFormErrors = { returnAddress?: string, }; type Props = { values: ShapeShiftFormValues, errors: ShapeShiftFormErrors, touched: boolean, handleChange: Event => any, handleBlur: Event => any, handleSubmit: Event => any, isSubmitting: boolean, shiftSupportedCoins: Array, originCoin: string, updating: boolean, getCoinStats: Dispatch, receiveAddress: string, originCoinDepositFee: number, originCoinDepositMin: string, originCoinDepositMax: number, shapeShiftRate: number, }; export default (props: Props) => { const { values, errors, touched, handleChange, handleBlur, handleSubmit, isSubmitting, shiftSupportedCoins, originCoin, updating, getCoinStats, receiveAddress, originCoinDepositMax, originCoinDepositMin, originCoinDepositFee, shapeShiftRate, } = props; return (
{__('Exchange')} {__('for LBC')}
{!updating && originCoinDepositMax && ( )}
({__('optional but recommended')}) {__('We will return your')} {originCoin}{' '} {__("to this address if the transaction doesn't go through.")}
); };