Files
ncd-fe/packages/pl-fe/src/utils/notification.ts
nicole mikołajczyk 9f98b5b07d nicolium: oxlint and oxfmt migration, remove eslint
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
2026-02-15 13:30:55 +01:00

31 lines
644 B
TypeScript

import type { Notification } from 'pl-api';
/** Notification types known to pl-fe. */
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 };