18 lines
295 B
JavaScript
18 lines
295 B
JavaScript
|
import { NOTIFICATION } from './actionsTypes';
|
||
|
|
||
|
export function notificationReceived(params) {
|
||
|
return {
|
||
|
type: NOTIFICATION.RECEIVED,
|
||
|
payload: {
|
||
|
message: params.text,
|
||
|
payload: params.payload
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
|
||
|
export function removeNotification() {
|
||
|
return {
|
||
|
type: NOTIFICATION.REMOVE
|
||
|
};
|
||
|
}
|