import { createFeatureSelector , createSelector } from "@ngrx/store" ; import * as fromSideA from "../reducers/side-a.reducer" ; import * as fromSideB from "../reducers/side-b.reducer" ; export const getSideAState = createFeatureSelector < fromSideA . State > ( "sideA" ) ; export const getALink = createSelector ( getSideAState , fromSideA . getALink ) ; export const getSwapLink = createSelector ( getSideAState , fromSideA . getSwapLink ) ; export const getAProgress = createSelector ( getSideAState , fromSideA . getAProgress ) ; export const getALoading = createSelector ( getSideAState , fromSideA . getALoading ) ; export const getAReceiveCoin = createSelector ( getSideAState , fromSideA . getAReceiveCoin ) ; export const getADepositCoin = createSelector ( getSideAState , fromSideA . getADepositCoin ) ; export const getASecret = createSelector ( getSideAState , fromSideA . getASecret ) ; export const getAHashedSecret = createSelector ( getSideAState , fromSideA . getAHashedSecret ) ; export const getAContractBin = createSelector ( getSideAState , fromSideA . getAContractBin ) ; export const getAContractTx = createSelector ( getSideAState , fromSideA . getAContractTx ) ; export const getLinkErrorMessage = createSelector ( getSideAState , fromSideA . getLinkErrorMessage ) ; export const getLinkGenerating = createSelector ( getSideAState , fromSideA . getLinkGenerating ) ;