useWebNotifications()
Home > @backstage/plugin-notifications
> useWebNotifications
Signature:
function useWebNotifications(enabled: boolean): {
sendWebNotification: (options: {
id: string;
title: string;
description: string;
link?: string;
}) => Notification | null;
};
Parameters
Parameter | Type | Description |
---|---|---|
enabled | boolean |
Returns:
{ sendWebNotification: (options: { id: string; title: string; description: string; link?: string; }) => Notification | null; }