mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-15 04:34:00 -05:00
25 lines
537 B
JavaScript
25 lines
537 B
JavaScript
export const NOTIFICATION_SHOW = 'NOTIFICATION_SHOW';
|
|
export const NOTIFICATION_DISMISS = 'NOTIFICATION_DISMISS';
|
|
export const NOTIFICATION_CLEAR = 'NOTIFICATION_CLEAR';
|
|
|
|
export function dismissNotification(notification) {
|
|
return {
|
|
type: NOTIFICATION_DISMISS,
|
|
notification: notification
|
|
};
|
|
};
|
|
|
|
export function clearNotifications() {
|
|
return {
|
|
type: NOTIFICATION_CLEAR
|
|
};
|
|
};
|
|
|
|
export function showNotification(title, message) {
|
|
return {
|
|
type: NOTIFICATION_SHOW,
|
|
title: title,
|
|
message: message
|
|
};
|
|
};
|