mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-13 12:38:39 -09:00
17 lines
352 B
JavaScript
17 lines
352 B
JavaScript
import {NOTIFICATION_MESSAGE, NOTIFICATION_DISMISS} from '../constants/notifications';
|
|
|
|
export function dismissNotification(id) {
|
|
return {
|
|
type: NOTIFICATION_DISMISS,
|
|
id
|
|
};
|
|
}
|
|
|
|
export function addNotificationMessage(text, url = null, dismissable = true) {
|
|
return {
|
|
type: NOTIFICATION_MESSAGE,
|
|
text,
|
|
url,
|
|
dismissable
|
|
};
|
|
}
|