const initialState = {
message : false,
key: null
}
const notification = (state = initialState , action) => {
switch( action.type ){
case "UPDATE_NOTIFICATION":
return Object.assign({}, state, action.payload );
case "RESET_NOTIFICATION":
return initialState;
default : return state;
}
}
export default notification;