import translate from 'translations'; import { Aux } from 'components/ui'; import { getTransactionFields, makeTransaction } from 'libs/transaction'; import { OfflineBroadcast } from './OfflineBroadcast'; import { SerializedTransaction } from 'components/renderCbs'; import { OnlineSend } from './OnlineSend'; import { addHexPrefix } from 'ethereumjs-util'; import { getWalletType, IWalletType } from 'selectors/wallet'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { AppState } from 'reducers'; export interface CallbackProps { onClick(): void; } interface StateProps { walletType: IWalletType; } interface OwnProps { onlyTransactionParameters?: boolean; withProps(props: CallbackProps): React.ReactElement | null; } const getStringifiedTx = (serializedTransaction: string) => JSON.stringify(getTransactionFields(makeTransaction(serializedTransaction)), null, 2); type Props = StateProps & OwnProps; class SendButtonFactoryClass extends Component { public render() { const { onlyTransactionParameters } = this.props; const columnSize = onlyTransactionParameters ? 12 : 6; return ( (