/ common / features / swap / selectors.ts
selectors.ts
1  import { AppState } from 'features/reducers';
2  
3  export const getSwap = (state: AppState) => state.swap;
4  export const getOrigin = (state: AppState) => getSwap(state).origin;
5  export const getPaymentAddress = (state: AppState) => getSwap(state).paymentAddress;
6  export const shouldDisplayLiteSend = (state: AppState) => getSwap(state).showLiteSend;
7  export const getHasNotifiedRatesFailure = (state: AppState) =>
8    getSwap(state).hasNotifiedRatesFailure;