import { ENCRYPTION } from '../actions/actionsTypes';
import { TApplicationActions } from '../definitions';
export interface IEncryption {
enabled: boolean;
// TODO
banner: any;
}
export const initialState: IEncryption = {
enabled: false,
banner: null
};
export default function encryption(state = initialState, action: TApplicationActions): IEncryption {
switch (action.type) {
case ENCRYPTION.SET:
return {
...state,
enabled: action.enabled,
banner: action.banner
case ENCRYPTION.SET_BANNER:
case ENCRYPTION.INIT:
return initialState;
default:
return state;