import { ReduxStoreState } from "modules/root" ; import { createSelector } from "reselect" ; import { identity } from "tools/client-utils" ; /** ===========================================================================
 * Address
 * ============================================================================
 */ export const addressSelector = ( state ) => { return state . ledger . ledger . address ; } ; /** ===========================================================================
 * Ledger
 * ============================================================================
 */ const ledgerState = ( state ) => { return state . ledger . ledger ; } ; const ledgerSelector = createSelector ( ledgerState , identity ) ; const networkState = ( state ) => { return state . ledger . ledger . network ; } ; const networkSelector = createSelector ( networkState , identity ) ; const ledgerDialogState = ( state ) => { return state . ledger . ledgerDialog ; } ; const ledgerDialogSelector = createSelector ( ledgerDialogState , identity ) ; const ledgerLogoutMenuState = ( state ) => { return state . ledger . logoutMenuOpen ; } ; const ledgerLogoutMenuSelector = createSelector ( ledgerLogoutMenuState , identity ) ; /** ===========================================================================
 * Export
 * ============================================================================
 */ export default { addressSelector , ledgerSelector , networkSelector , ledgerDialogSelector , ledgerLogoutMenuSelector , } ;