Add message priorities.

This commit is contained in:
Dermot Duffy
2022-06-24 19:42:25 -07:00
parent b86f44627f
commit 5a3703457d
9 changed files with 73 additions and 49 deletions
+10 -1
View File
@@ -1188,9 +1188,18 @@ export interface MediaShowInfo {
height: number;
}
export const MESSAGE_TYPE_PRIORITIES = {
info: 10,
error: 20,
connection: 30,
diagnostics: 40,
}
export type MessageType = 'info' | 'error' | 'connection' | 'diagnostics';
export interface Message {
message: string;
type: 'error' | 'info';
type: MessageType,
icon?: string;
context?: unknown;
dotdotdot?: boolean;