renderNotification prop. This function receives the full notification object and returns a custom React element.
You can use worklow data such as tags, identifiers, data object or notfication severity to control how notifications are desplayed in the notification UI. This lets you create create dynamic, personalized notification UI for your subscribers.
Display notifications based on workflow tags
You can conditionally display customized notification based on workflow tags. These tags are defined in your workflow and are accessible vianotification.tags property.
Display notifications based on workflow identifier or name
Each workflow has a name and a unique identifier, accessible throughnotification.workflow.name and notification.workflow.identifier, respectively. Either property can be used to conditionally render notifications.
Display notifications based on data object
You can also use values from the notification data object to render notifications conditionally. These values are accessible vianotification.data and typically contain custom payload fields.