You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
360 B
TypeScript
9 lines
360 B
TypeScript
import { ThemeStateType } from '../../themes/constants/colors';
|
|
import { StateType } from '../reducer';
|
|
|
|
export const getTheme = (state: StateType): ThemeStateType => state.theme;
|
|
|
|
export const isDarkTheme = (state: StateType): boolean => state.theme.includes('dark');
|
|
|
|
export const isLightTheme = (state: StateType): boolean => state.theme.includes('light');
|