MyCrypto/common/selectors/swap.ts

9 lines
433 B
TypeScript

import { AppState } from 'reducers';
const getSwap = (state: AppState) => state.swap;
export const getOrigin = (state: AppState) => getSwap(state).origin;
export const getPaymentAddress = (state: AppState) => getSwap(state).paymentAddress;
export const shouldDisplayLiteSend = (state: AppState) => getSwap(state).showLiteSend;
export const getHasNotifiedRatesFailure = (state: AppState) =>
getSwap(state).hasNotifiedRatesFailure;