152 lines
3.3 KiB
TypeScript
152 lines
3.3 KiB
TypeScript
export const MEMBER_STATUS_VARIANT: Record<
|
|
string,
|
|
'default' | 'secondary' | 'destructive' | 'outline'
|
|
> = {
|
|
active: 'default',
|
|
inactive: 'secondary',
|
|
pending: 'outline',
|
|
resigned: 'destructive',
|
|
excluded: 'destructive',
|
|
};
|
|
|
|
export const MEMBER_STATUS_LABEL: Record<string, string> = {
|
|
active: 'Aktiv',
|
|
inactive: 'Inaktiv',
|
|
pending: 'Ausstehend',
|
|
resigned: 'Ausgetreten',
|
|
excluded: 'Ausgeschlossen',
|
|
};
|
|
|
|
export const INVOICE_STATUS_VARIANT: Record<
|
|
string,
|
|
'default' | 'secondary' | 'destructive' | 'outline'
|
|
> = {
|
|
draft: 'outline',
|
|
sent: 'secondary',
|
|
paid: 'default',
|
|
overdue: 'destructive',
|
|
cancelled: 'destructive',
|
|
};
|
|
|
|
export const INVOICE_STATUS_LABEL: Record<string, string> = {
|
|
draft: 'Entwurf',
|
|
sent: 'Gesendet',
|
|
paid: 'Bezahlt',
|
|
overdue: 'Überfällig',
|
|
cancelled: 'Storniert',
|
|
};
|
|
|
|
export const BATCH_STATUS_VARIANT: Record<
|
|
string,
|
|
'default' | 'secondary' | 'destructive' | 'outline'
|
|
> = {
|
|
draft: 'outline',
|
|
submitted: 'secondary',
|
|
processing: 'secondary',
|
|
completed: 'default',
|
|
failed: 'destructive',
|
|
};
|
|
|
|
export const BATCH_STATUS_LABEL: Record<string, string> = {
|
|
draft: 'Entwurf',
|
|
submitted: 'Eingereicht',
|
|
processing: 'In Bearbeitung',
|
|
completed: 'Abgeschlossen',
|
|
failed: 'Fehlgeschlagen',
|
|
};
|
|
|
|
export const NEWSLETTER_STATUS_VARIANT: Record<
|
|
string,
|
|
'default' | 'secondary' | 'destructive' | 'outline'
|
|
> = {
|
|
draft: 'outline',
|
|
scheduled: 'secondary',
|
|
sending: 'secondary',
|
|
sent: 'default',
|
|
failed: 'destructive',
|
|
};
|
|
|
|
export const NEWSLETTER_STATUS_LABEL: Record<string, string> = {
|
|
draft: 'Entwurf',
|
|
scheduled: 'Geplant',
|
|
sending: 'Wird gesendet',
|
|
sent: 'Gesendet',
|
|
failed: 'Fehlgeschlagen',
|
|
};
|
|
|
|
export const EVENT_STATUS_VARIANT: Record<
|
|
string,
|
|
'default' | 'secondary' | 'destructive' | 'outline'
|
|
> = {
|
|
planned: 'outline',
|
|
open: 'secondary',
|
|
full: 'secondary',
|
|
running: 'default',
|
|
completed: 'default',
|
|
cancelled: 'destructive',
|
|
};
|
|
|
|
export const EVENT_STATUS_LABEL: Record<string, string> = {
|
|
planned: 'Geplant',
|
|
open: 'Offen',
|
|
full: 'Ausgebucht',
|
|
running: 'Laufend',
|
|
completed: 'Abgeschlossen',
|
|
cancelled: 'Abgesagt',
|
|
};
|
|
|
|
export const COURSE_STATUS_VARIANT: Record<
|
|
string,
|
|
'default' | 'secondary' | 'destructive' | 'outline'
|
|
> = {
|
|
planned: 'outline',
|
|
open: 'default',
|
|
active: 'default',
|
|
running: 'secondary',
|
|
completed: 'secondary',
|
|
cancelled: 'destructive',
|
|
};
|
|
|
|
export const COURSE_STATUS_LABEL: Record<string, string> = {
|
|
planned: 'Geplant',
|
|
open: 'Offen',
|
|
active: 'Aktiv',
|
|
running: 'Laufend',
|
|
completed: 'Abgeschlossen',
|
|
cancelled: 'Abgesagt',
|
|
};
|
|
|
|
export const APPLICATION_STATUS_VARIANT: Record<
|
|
string,
|
|
'default' | 'secondary' | 'destructive' | 'outline'
|
|
> = {
|
|
submitted: 'outline',
|
|
review: 'secondary',
|
|
approved: 'default',
|
|
rejected: 'destructive',
|
|
};
|
|
|
|
export const APPLICATION_STATUS_LABEL: Record<string, string> = {
|
|
submitted: 'Eingereicht',
|
|
review: 'In Prüfung',
|
|
approved: 'Genehmigt',
|
|
rejected: 'Abgelehnt',
|
|
};
|
|
|
|
export const NEWSLETTER_RECIPIENT_STATUS_VARIANT: Record<
|
|
string,
|
|
'default' | 'secondary' | 'destructive' | 'outline'
|
|
> = {
|
|
pending: 'secondary',
|
|
sent: 'default',
|
|
failed: 'destructive',
|
|
bounced: 'destructive',
|
|
};
|
|
|
|
export const NEWSLETTER_RECIPIENT_STATUS_LABEL: Record<string, string> = {
|
|
pending: 'Ausstehend',
|
|
sent: 'Gesendet',
|
|
failed: 'Fehlgeschlagen',
|
|
bounced: 'Zurückgewiesen',
|
|
};
|