|
|
|
@ -4,7 +4,6 @@ import { LocalizerType } from '../../types/Util';
|
|
|
|
|
|
|
|
|
|
import { StateType } from '../reducer';
|
|
|
|
|
import { UserStateType } from '../ducks/user';
|
|
|
|
|
import { HTMLDirection, getHTMLDirection } from '../../util/i18n';
|
|
|
|
|
|
|
|
|
|
export const getUser = (state: StateType): UserStateType => state.user;
|
|
|
|
|
|
|
|
|
@ -14,5 +13,3 @@ export const getOurNumber = createSelector(
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
export const getIntl = createSelector(getUser, (): LocalizerType => window.i18n);
|
|
|
|
|
|
|
|
|
|
export const getWritingDirection = createSelector(getUser, (): HTMLDirection => getHTMLDirection());
|
|
|
|
|