MCPcopy Create free account
hub / github.com/Moebytes/Frame-Player / useThemeSelector

Function useThemeSelector

reducers/themeReducer.ts:39–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37} = themeSlice.actions
38
39export const useThemeSelector = () => {
40 const selector = useSelector.withTypes<StoreState>()
41 return {
42 theme: selector((state) => state.theme.theme),
43 os: selector((state) => state.theme.os),
44 transparent: selector((state) => state.theme.transparent),
45 pinned: selector((state) => state.theme.pinned)
46 }
47}
48
49export const useThemeActions = () => {
50 const dispatch = useDispatch.withTypes<StoreDispatch>()()

Callers 2

LocalStorageFunction · 0.85
TitleBarFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected