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

Function useThemeActions

reducers/themeReducer.ts:49–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47}
48
49export const useThemeActions = () => {
50 const dispatch = useDispatch.withTypes<StoreDispatch>()()
51 return {
52 setTheme: (state: Themes) => dispatch(setTheme(state)),
53 setOS: (state: OS) => dispatch(setOS(state)),
54 setTransparent: (state: boolean) => dispatch(setTransparent(state)),
55 setPinned: (state: boolean) => dispatch(setPinned(state))
56 }
57}
58
59export default themeSlice.reducer

Callers 2

LocalStorageFunction · 0.85
TitleBarFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected