Files
remark42/frontend/app/store/theme/actions.ts
T
2022-01-18 01:38:30 -06:00

13 lines
250 B
TypeScript

import { Theme } from 'common/types';
import { StoreAction } from '../';
import { THEME_SET } from './types';
export const setTheme =
(theme: Theme): StoreAction<void> =>
(dispatch) =>
dispatch({
type: THEME_SET,
theme,
});