aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/containers/selected_asset_button.tsx
blob: 86be291bc849265dc758276addf95e1472f12353 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import * as _ from 'lodash';
import * as React from 'react';
import { connect } from 'react-redux';

import { State } from '../redux/reducer';
import { AsyncProcessState } from '../types';

import { BuyOrderStateButton } from '../components/buy_order_state_button';

interface ConnectedState {
    buyOrderState: AsyncProcessState;
}
export interface SelectedAssetButtonProps {}
const mapStateToProps = (state: State, _ownProps: SelectedAssetButtonProps): ConnectedState => ({
    buyOrderState: state.buyOrderState,
});

export const SelectedAssetButton: React.ComponentClass<SelectedAssetButtonProps> = connect(mapStateToProps)(
    BuyOrderStateButton,
);