2019-06-10 16:23:19 +00:00
|
|
|
import { NOTIFICATION } from './actionsTypes';
|
|
|
|
|
|
|
|
export function notificationReceived(params) {
|
|
|
|
return {
|
|
|
|
type: NOTIFICATION.RECEIVED,
|
|
|
|
payload: {
|
2020-02-12 17:21:11 +00:00
|
|
|
title: params.title,
|
|
|
|
avatar: params.avatar,
|
2019-06-10 16:23:19 +00:00
|
|
|
message: params.text,
|
|
|
|
payload: params.payload
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export function removeNotification() {
|
|
|
|
return {
|
|
|
|
type: NOTIFICATION.REMOVE
|
|
|
|
};
|
|
|
|
}
|