import { ActionCreatorsMapObject } from "redux" ; import { StateDict } from "../core" ; import { DefaultPickedProps } from "./types" ; import ActionTypes from "../ActionTypes" ; export function defaultPropsPicker < S > ( { _arenaScene : state } , { _arenaScene : actions } ) { return Object . assign ( { } , state , { actions } ) ; } export const defaultActions = { setState : ( state ) => ( { type : ActionTypes . ARENA_SCENE_SET_STATE , state } ) } ; export const defaultReducerCreator = ( defaultState = { } ) => ( state = defaultState ) => state ;