import translate from 'translations'; 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'; import { ConfirmationModal } from 'components/ConfirmationModal'; import { TextArea } from 'components/ui'; export interface CallbackProps { onClick(): void; } interface StateProps { walletType: IWalletType; } interface OwnProps { onlyTransactionParameters?: boolean; Modal: typeof ConfirmationModal; 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 ( (