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