Files
ncd-fe/packages/pl-fe/src/utils/notification.ts
nicole mikołajczyk 0119b5f2aa pl-fe: quote notifications support
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
2025-09-19 22:08:15 +02:00

37 lines
656 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,
};