From b92461a132853b3d274f738282088958fc1722f5 Mon Sep 17 00:00:00 2001 From: MoonTestUse1 Date: Sat, 28 Dec 2024 05:52:23 +0600 Subject: [PATCH] Initial commit for develop branch3 --- frontend/src/utils/constants.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 frontend/src/utils/constants.ts diff --git a/frontend/src/utils/constants.ts b/frontend/src/utils/constants.ts new file mode 100644 index 0000000..0d9db15 --- /dev/null +++ b/frontend/src/utils/constants.ts @@ -0,0 +1,17 @@ +export const requestTypes = [ + { value: 'hardware', label: 'Проблемы с оборудованием' }, + { value: 'software', label: 'Проблемы с программным обеспечением' }, + { value: 'network', label: 'Проблемы с сетью' }, + { value: 'access', label: 'Доступ к системам' }, + { value: 'other', label: 'Другое' } +] as const; + +export const departments = [ + { value: 'aho', label: 'Административно-хозяйственный отдел' }, + { value: 'gkh', label: 'Жилищно-коммунальное хозяйство' }, + { value: 'general', label: 'Общий отдел' } +] as const; + +export function getRequestTypeLabel(value: string): string { + return requestTypes.find(type => type.value === value)?.label || value; +} \ No newline at end of file