File size: 333 Bytes
03d9a71
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
import { DEFAULT_SETTING } from './initialState';
import type { Store } from './store';

const currentSetting = (s: Store) => ({ ...DEFAULT_SETTING, ...s.setting });
const currentTab = (s: Store) => s.currentTab;
const themeMode = (s: Store) => s.themeMode;
export const selectors = {
  currentSetting,
  currentTab,
  themeMode,
};