All files / store/reducers/settings settings-selectors.ts

90% Statements 9/10
100% Branches 0/0
80% Functions 4/5
100% Lines 5/5

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8    4x 4x 4x 4x 4x  
import { RootState } from '@/store';
 
export const selectTheme = (state: RootState) => state.settings.theme;
export const selectLanguage = (state: RootState) => state.settings.language;
export const selectViewMode = (state: RootState) => state.settings.viewMode;
export const selectFontSize = (state: RootState) => state.settings.fontSize;
export const selectDataSource = (state: RootState) => state.settings.dataSource;