import { ActionTypes } from "./actionTypes" ; import { Bundle } from "../linker" ; export enum Screen { Setup = 'setup' , Edit = 'edit' , Statistics = 'statistics' , Record = 'record' , Save = 'save' , EditorSave = 'editor_save' , DocumentationSmall = 'documentation_small' , DocumentationBig = 'documentation_big' } export default function ( bundle ) { bundle . defineAction ( ActionTypes . AppSwitchToScreen ) ; bundle . addReducer ( ActionTypes . AppSwitchToScreen , ( state , { payload : { screen : screenName } } ) => { state . screen = screenName ; } ) ; } ;