Files
ncd-fe/packages/pl-fe/src/utils/notification.ts
marcin mikołajczak 966b04fdf0 Call it pl-fe internally
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-08-28 13:41:08 +02:00

34 lines
612 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',
'update',
'event_reminder',
'participation_request',
'participation_accepted',
'bite',
] 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,
};