Function useNotifications

  • Returns {
        close: (notification: Notification) => void;
        getPermissionState: () => NotificationPermission;
        isSupported: boolean;
        requestPermission: () => Promise<NotificationPermission>;
        show: (
            title: string,
            options?: CustomNotificationOptions,
        ) => Promise<null | Notification>;
    }