1
0
Fork 0
mirror of https://github.com/pawelmalak/flame.git synced 2025-07-18 19:19:36 +02:00
flame/client/src/store/actions/theme.ts
2022-03-25 12:13:19 +01:00

32 lines
644 B
TypeScript

import { ActionType } from '../action-types';
import { Theme, ThemeColors } from '../../interfaces';
export interface SetThemeAction {
type: ActionType.setTheme;
payload: ThemeColors;
}
export interface FetchThemesAction {
type: ActionType.fetchThemes;
payload: Theme[];
}
export interface AddThemeAction {
type: ActionType.addTheme;
payload: Theme;
}
export interface DeleteThemeAction {
type: ActionType.deleteTheme;
payload: Theme[];
}
export interface UpdateThemeAction {
type: ActionType.updateTheme;
payload: Theme[];
}
export interface EditThemeAction {
type: ActionType.editTheme;
payload: Theme | null;
}