Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | 4x 4x | import type { Theme } from '@repo/ui/themes/types';
import { RequestCategory } from '@/types/request';
export const REQUEST_CATEGORY_LABELS: Record<RequestCategory, string> = {
[RequestCategory.TIME_OFF]: 'Time off',
[RequestCategory.BOOK_ROOM]: 'Book a room',
[RequestCategory.MAINTENANCE]: 'Maintenance',
[RequestCategory.REALLOCATION]: 'Reallocation',
[RequestCategory.MEAL_RESERVATION]: 'Meal reservation',
};
export const getRequestCategoryColors = (theme: Theme): Record<RequestCategory, string> => ({
[RequestCategory.TIME_OFF]: theme.colors.requestCategory.timeOff,
[RequestCategory.BOOK_ROOM]: theme.colors.requestCategory.bookRoom,
[RequestCategory.MAINTENANCE]: theme.colors.requestCategory.maintenance,
[RequestCategory.REALLOCATION]: theme.colors.requestCategory.reallocation,
[RequestCategory.MEAL_RESERVATION]: theme.colors.background.selectedStrong,
});
|