import { Question , User } from 'shared-library/shared/model' ; import { UserActions , UserActionTypes } from '../actions' ; import { UserActions as UAction } from 'shared-library/core/store' ; export function userPublishedQuestions ( state = [ ] , action ) { switch ( action . type ) { case UserActionTypes . LOAD_USER_PUBLISHED_QUESTIONS_SUCCESS : return action . payload ; default : return state ; } } export function userUnpublishedQuestions ( state = [ ] , action ) { switch ( action . type ) { case UserActionTypes . LOAD_USER_UNPUBLISHED_QUESTIONS_SUCCESS : return action . payload ; default : return state ; } }