import Redux from 'redux' ; import { LayoutState } from './StateTypes' ; export const initialState = { printing : false , } ; export default function Layout ( state = initialState , action ) { switch ( action . type ) { case 'LAYOUT_PRINTING' : return { ... state , printing : ( action as any ) . printing } ; default : return state ; } }