// Copyright 2017-2019 @polkadot/app-123code authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { ApiProps } from '@polkadot/ui-api/types'; import { QueueTx$ExtrinsicAdd } from '@polkadot/ui-app/Status/types'; import React from 'react'; import { Button } from '@polkadot/ui-app/index'; import { QueueConsumer } from '@polkadot/ui-app/Status/Context'; import { withApi } from '@polkadot/ui-api/index'; import { assert } from '@polkadot/util'; type InjectedProps = { queueExtrinsic: QueueTx$ExtrinsicAdd; }; type Props = ApiProps & { accountId?: string, isDisabled?: boolean, label: React.ReactNode, params: Array, tx: string }; class TxButtonInner extends React.PureComponent { render () { const { accountId, isDisabled, label } = this.props; return (