Files
ncd-fe/packages/pl-fe/src/utils/notification.ts
nicole mikołajczyk 7cfb7fbbf2 nicolium: renames
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
2026-02-26 22:06:33 +01:00

31 lines
647 B
TypeScript

import type { Notification } from 'pl-api';
/** Notification types known to Nicolium. */
const NOTIFICATION_TYPES = [
'follow',
'follow_request',
'mention',
'reblog',
'favourite',
'poll',
'status',
'move',
'chat_mention',
'emoji_reaction',
'reaction',
'update',
'event_reminder',
'participation_request',
'participation_accepted',
'bite',
'quote',
'quoted_update',
] as const;
/** Notification types to exclude from the "All" filter by default. */
const EXCLUDE_TYPES = ['chat_mention'] as const;
type NotificationType = Notification['type'];
export { NOTIFICATION_TYPES, EXCLUDE_TYPES, NotificationType };