mirror of
https://github.com/fergalmoran/onearmy-community-platform.git
synced 2025-12-22 09:37:54 +00:00
31 lines
751 B
TypeScript
31 lines
751 B
TypeScript
export enum EmailNotificationFrequency {
|
|
NEVER = 'never',
|
|
DAILY = 'daily',
|
|
WEEKLY = 'weekly',
|
|
MONTHLY = 'monthly',
|
|
}
|
|
|
|
export const NotificationTypes = [
|
|
'new_comment', // legacy format, should use new_comment_discussion
|
|
'howto_useful',
|
|
'howto_mention',
|
|
'howto_approved',
|
|
'howto_needs_updates',
|
|
'map_pin_approved',
|
|
'map_pin_needs_updates',
|
|
'new_comment_discussion',
|
|
'new_comment_research', // legacy format, should use new_comment_discussion
|
|
'research_useful',
|
|
'research_mention',
|
|
'research_update',
|
|
'research_approved',
|
|
'research_needs_updates',
|
|
] as const
|
|
|
|
export type NotificationType = typeof NotificationTypes[number]
|
|
|
|
export type UserNotificationItem = {
|
|
type: NotificationType
|
|
children: React.ReactNode
|
|
}
|