mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-13 04:28:41 -09:00
20 lines
358 B
JavaScript
20 lines
358 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
|
|
};
|
|
}
|