mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-27 21:44:21 -04:00

Co-authored-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Signed-off-by: Philip Molares <philip.molares@udo.edu> Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
20 lines
572 B
TypeScript
20 lines
572 B
TypeScript
import {Action, ActionCreator} from 'redux';
|
|
import {ApplicationConfigState} from "./types";
|
|
|
|
export const SET_APPLICATION_CONFIG_ACTION_TYPE = 'config/set';
|
|
|
|
export interface SetApplicationConfigAction extends Action {
|
|
type: string;
|
|
payload: {
|
|
state: ApplicationConfigState;
|
|
};
|
|
}
|
|
|
|
export const setApplicationConfig: ActionCreator<SetApplicationConfigAction> = (state: ApplicationConfigState) => ({
|
|
type: SET_APPLICATION_CONFIG_ACTION_TYPE,
|
|
payload: {
|
|
state
|
|
},
|
|
})
|
|
|
|
export type ApplicationConfigActions = SetApplicationConfigAction;
|