Returns {
add: (notification: Omit<Notification, "id" | "timestamp">) => string;
clear: () => void;
clearAll: () => void;
error: (
title: string,
message?: string,
options?: Partial<Notification>,
) => string;
hasNotifications: ComputedRef<boolean>;
info: (
title: string,
message?: string,
options?: Partial<Notification>,
) => string;
notifications: ComputedRef<
{
actions?: { action: () => void; label: string; primary?: boolean }[];
id: string;
message?: string;
persistent?: boolean;
timeout?: number;
timestamp: Date;
title: string;
type: "warning" | "info" | "error" | "success";
}[],
>;
remove: (id: string) => void;
success: (
title: string,
message?: string,
options?: Partial<Notification>,
) => string;
unreadCount: ComputedRef<number>;
warning: (
title: string,
message?: string,
options?: Partial<Notification>,
) => string;
}
Object containing notification management functions and reactive state
add: (notification: Omit<Notification, "id" | "timestamp">) => string
clear: () => void
clearAll: () => void
error: (title: string, message?: string, options?: Partial<Notification>) => string
hasNotifications: ComputedRef<boolean>
info: (title: string, message?: string, options?: Partial<Notification>) => string
notifications: ComputedRef<
{
actions?: { action: () => void; label: string; primary?: boolean }[];
id: string;
message?: string;
persistent?: boolean;
timeout?: number;
timestamp: Date;
title: string;
type: "warning" | "info" | "error" | "success";
}[],
>
remove: (id: string) => void
success: (title: string, message?: string, options?: Partial<Notification>) => string
unreadCount: ComputedRef<number>
warning: (title: string, message?: string, options?: Partial<Notification>) => string
Hook to access the notification center functionality