mirror of
https://github.com/wassname/talk.git
synced 2026-07-02 16:32:10 +08:00
13 lines
412 B
JavaScript
13 lines
412 B
JavaScript
import pym from '../services/PymConnection';
|
|
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};
|
|
};
|