| @@ -1,9 +1,7 @@ | ||
| 1 | -import { | |
| 2 | - resolveNotificationLink, | |
| 3 | - siteHost, | |
| 4 | -} from '@notifications/notification-link'; | |
| 1 | +import { resolveNotificationLink } from '@notifications/notification-link'; | |
| 5 | 2 | import { notificationFor } from '@notifications/selection'; |
| 3 | +import { siteHost } from '@shared/lib/site-host'; | |
| 6 | 4 | |
| 7 | 5 | export const AGENT_CHAT_SLOT = 'agent-chat'; |
| 8 | 6 | |
| 9 | 7 | export const notificationSuggestion = () => { |
| @@ -17,11 +15,11 @@ | ||
| 17 | 15 | const slug = notification.slug; |
| 18 | 16 | const source = notification.source; |
| 19 | 17 | |
| 20 | 18 | return { |
| 21 | - id: `notification-${slug}`, | |
| 22 | - type: 'external-link', | |
| 23 | 19 | message, |
| 20 | + content: notification.content, | |
| 21 | + ctaLabel: notification['cta-label'], | |
| 24 | 22 | url: href, |
| 25 | 23 | viewTelemetry: { |
| 26 | 24 | key: 'notification_view', |
| 27 | 25 | payload: { slug, slot: AGENT_CHAT_SLOT, source }, |