Skip to content

Email for professionals and teams

460 B
Raw Blame
export interface NewMessageEvent {
	from: string;
	fromName: string | null;
	mailboxId: string;
	messageId: string;
	subject: string | null;
	type: "new_message";
}

export interface MessageRealtimeState {
	dismissNotification: () => void;
	notification: NewMessageEvent | null;
}

export type RealtimeChannelMessage =
	| { type: "status"; connected: boolean }
	| { type: "status_request" }
	| { type: "notification"; payload: string }
	| { type: "refresh" };