eeff292
import { t } from '@app/i18n'
import type { NotificationType } from '@app/services/api'
import {
IconAt as AtSign,
IconBell as Bell,
IconFlag as Flag,
IconMessage as MessageSquare,
IconUserPlus as UserPlus,
IconUsers as Users,
} from '@tabler/icons-react'
export const NOTIFY_META: Record<NotificationType, { label: string; icon: typeof AtSign }> = {
mention: {
get label() {
return t('notifications.type.mention')
},
icon: AtSign,
},
reply: {
get label() {
return t('notifications.type.reply')
},
icon: MessageSquare,
},
follow: {
get label() {
return t('notifications.type.follow')
},
icon: Users,
},
invite: {
get label() {
return t('notifications.type.invite')
},
icon: UserPlus,
},
assignment: {
get label() {
return t('notifications.type.assignment')
},
icon: Flag,
},
system: {
get label() {
return t('notifications.type.system')
},
icon: Bell,
},
}