mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
15 lines
455 B
TypeScript
15 lines
455 B
TypeScript
export const NOTIFICATION_MESSAGE = 'NOTIFICATION_MESSAGE';
|
|
export const NOTIFICATION_DISMISS = 'NOTIFICATION_DISMISS';
|
|
|
|
export interface NotificationMessageAction {
|
|
type: typeof NOTIFICATION_MESSAGE;
|
|
text: string;
|
|
url: string | null;
|
|
dismissable: boolean;
|
|
}
|
|
export interface NotificationDismissAction {
|
|
type: typeof NOTIFICATION_DISMISS;
|
|
id: string;
|
|
}
|
|
|
|
export type NotificationActions = NotificationMessageAction | NotificationDismissAction;
|