admin_ruspet/src/features/topics/constants.ts

38 lines
1.3 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

export const DURATION_TYPES = [
{ value: 'single_day', label: 'Один день' },
{ value: 'multi_day', label: 'Несколько дней' },
{ value: 'date_range', label: 'Диапазон дат' },
]
export const TIME_TYPES = [
{ value: 'partial', label: 'Частично (с указанием времени)' },
{ value: 'full_day', label: 'Весь день' },
]
export const PAYMENT_TYPES = [
{ value: 'own_expense', label: 'За свой счёт' },
{ value: 'vacation_account', label: 'В счёт отпуска' },
{ value: 'official', label: 'Официально (больничный)' },
]
export const APPROVAL_MODES = [
{ value: 'sequential', label: 'Последовательное' },
{ value: 'parallel', label: 'Параллельное' },
]
export const DURATION_LABELS: Record<string, string> = {
single_day: 'Один день',
multi_day: 'Несколько дней',
date_range: 'Диапазон',
}
export const TIME_LABELS: Record<string, string> = {
partial: 'Частично',
full_day: 'Весь день',
}
export const PAYMENT_LABELS: Record<string, string> = {
own_expense: 'За свой счёт',
vacation_account: 'В счёт отпуска',
official: 'Официально',
}