MyCrypto/common/components/GenerateTransaction.tsx
2018-04-06 15:55:36 +07:00

16 lines
514 B
TypeScript

import { GenerateTransactionFactory } from './GenerateTransactionFactory';
import React from 'react';
import translate from 'translations';
export const GenerateTransaction: React.SFC<{}> = () => {
return (
<GenerateTransactionFactory
withProps={({ disabled, isWeb3Wallet, onClick }) => (
<button disabled={disabled} className="btn btn-info btn-block" onClick={onClick}>
{isWeb3Wallet ? translate('SEND_generate') : translate('DEP_signtx')}
</button>
)}
/>
);
};