WIP: audio autoplay working with consecutive messages. Next step store state on shutdown and rename variables.
parent
f381102860
commit
d35f3f9e62
@ -1,4 +1,11 @@
|
||||
import { StateType } from '../reducer';
|
||||
import { UserConfigState } from "../ducks/userConfig";
|
||||
import { createSelector } from 'reselect';
|
||||
|
||||
export const getUserConfig = (state: StateType): UserConfigState => state.userConfig;
|
||||
|
||||
|
||||
export const getAudioAutoplay = createSelector(
|
||||
getUserConfig,
|
||||
(state: UserConfigState): boolean => state.audioAutoplay
|
||||
);
|
Loading…
Reference in New Issue