Created
January 5, 2019 20:13
-
-
Save emyann/32b35361a9c07d32a72088649aa2005d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { CallEventsActions } from './callEvents.action'; | |
export interface CallState { | |
latestCall: string | null; | |
byId: { [id: string]: Call }; | |
allIds: string[]; | |
} | |
export const CALLS_INITIAL_STATE = { | |
latestCall: null, | |
byId: {}, | |
allIds: [], | |
}; | |
export const callEventsReducer: Reducer<CallState, CallEventsActions> = (state = CALLS_INITIAL_STATE, action) => { | |
switch (action.type) { | |
case START_INCOMING_CALL:{} | |
} | |
} | |
export default callEventsReducer; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment