canape/frontend/js/actions/notifications.js

10 lines
188 B
JavaScript

export const sendNotification = data => ({
type: "ADD_NOTIFICATION",
payload: data
});
export const removeNotification = id => ({
type: "REMOVE_NOTIFICATION",
payload: { id }
});