import { Epic , combineEpics } from 'redux-observable' ; import { of } from 'rxjs' ; import { filter , mergeMap } from 'rxjs/operators' ; import { ConfigurationEpicActions , setTheme , setThemeSuccess } from '../actions' ; const setThemeEpic$ = ( action$ ) => action$ . pipe ( filter ( setTheme . match ) , mergeMap ( ( ) => of ( setThemeSuccess ( ) ) ) ) ; export const configurationEpic = combineEpics ( setThemeEpic$ ) ;