20 lines
429 B
TypeScript
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
|
|
}
|