story-research-zapwall/types/notifications.ts
2025-12-22 09:48:57 +01:00

20 lines
429 B
TypeScript

export type NotificationType = 'payment' | 'mention' | 'comment'
export interface Notification {
id: string
type: NotificationType
title: string
message: string
timestamp: number
read: boolean
articleId?: string
articleTitle?: string
amount?: number // in satoshis, for payment notifications
fromPubkey?: string
}
export interface NotificationState {
notifications: Notification[]
unreadCount: number
}