MyCrypto/common/selectors/gas.ts

6 lines
239 B
TypeScript

import { AppState } from 'reducers';
const getGas = (state: AppState) => state.gas;
export const getEstimates = (state: AppState) => getGas(state).estimates;
export const getIsEstimating = (state: AppState) => getGas(state).isEstimating;