mirror of
https://github.com/wassname/talk.git
synced 2026-06-29 21:09:45 +08:00
13 lines
402 B
JavaScript
13 lines
402 B
JavaScript
import pym from '../services/pym';
|
|
import * as actions from '../constants/notification';
|
|
|
|
export const addNotification = (notifType, text) => {
|
|
pym.sendMessage('coral-alert', `${notifType}|${text}`);
|
|
return {type: actions.ADD_NOTIFICATION, notifType, text};
|
|
};
|
|
|
|
export const clearNotification = () => {
|
|
pym.sendMessage('coral-clear-notification');
|
|
return {type: actions.CLEAR_NOTIFICATION};
|
|
};
|