31 lines
686 B
TypeScript
31 lines
686 B
TypeScript
import { AppState } from 'features/reducers';
|
|
|
|
function getConfig(state: AppState) {
|
|
return state.config;
|
|
}
|
|
|
|
export function getMeta(state: AppState) {
|
|
return getConfig(state).meta;
|
|
}
|
|
|
|
export function getOffline(state: AppState): boolean {
|
|
return getMeta(state).offline;
|
|
}
|
|
|
|
export function getAutoGasLimitEnabled(state: AppState): boolean {
|
|
const meta = getMeta(state);
|
|
return meta.autoGasLimit;
|
|
}
|
|
|
|
export function getLanguageSelection(state: AppState): string {
|
|
return getMeta(state).languageSelection;
|
|
}
|
|
|
|
export function getTheme(state: AppState) {
|
|
return getMeta(state).theme;
|
|
}
|
|
|
|
export function getLatestBlock(state: AppState) {
|
|
return getMeta(state).latestBlock;
|
|
}
|