1 | /* @flow */
|
2 | import * as ACTIONS from '../actions/auralNotificationActions';
|
3 |
|
4 | const { ADD_AURAL_NOTIFICATION, REMOVE_AURAL_NOTIFICATION } = ACTIONS;
|
5 |
|
6 | export 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 | }
|