import Redux from 'redux' ; import { audio } from './Audio' ; import { audioData } from './AudioData' ; import { card } from './Card' ; import { checkout } from './Checkout' ; import { commitID } from './CommitID' ; import { dialog } from './Dialog' ; import { history } from './History' ; import { multiplayer } from './Multiplayer' ; import { quest } from './Quest' ; import { saved } from './Saved' ; import { search } from './Search' ; import { serverstatus } from './ServerStatus' ; import { settings } from './Settings' ; import { snackbar } from './Snackbar' ; import { AppStateWithHistory } from './StateTypes' ; import { user } from './User' ; import { userquests } from './UserQuests' ; export default function combinedReduce ( state , action ) { state = state || ( { } as AppStateWithHistory ) ; state = commitID ( state , action , combinedReduce ) ; state = history ( state , action ) ; return { audio : audio ( state . audio , action ) , audioData : audioData ( state . audioData , action ) , card : card ( state . card , action ) , checkout : checkout ( state . checkout , action ) , commitID : state . commitID , dialog : dialog ( state . dialog , action ) , multiplayer : multiplayer ( state . multiplayer , action ) , quest : quest ( state . quest , action ) , saved : saved ( state . saved , action ) , search : search ( state . search , action ) , serverstatus : serverstatus ( state . serverstatus , action ) , settings : settings ( state . settings , action ) , snackbar : snackbar ( state . snackbar , action ) , user : user ( state . user , action ) , userQuests : userquests ( state . userQuests , action ) , _history : ( state && state . _history ) , _return : ( state && state . _return ) , _committed : ( state && state . _committed ) , } as AppStateWithHistory ; }