UNPKG

448 BJavaScriptView Raw
1/* @flow */
2import * as ACTIONS from '../actions/auralNotificationActions';
3
4const { ADD_AURAL_NOTIFICATION, REMOVE_AURAL_NOTIFICATION } = ACTIONS;
5
6export default function(state: string = '', { type, payload }: { type: string, payload: string }) {
7 switch (type) {
8 case ADD_AURAL_NOTIFICATION:
9 return payload;
10 case REMOVE_AURAL_NOTIFICATION:
11 return '';
12 default:
13 return state;
14 }
15}