Spaces:
Sleeping
Sleeping
Download src/lib/important-dates-format.ts from ashnhash/UniHunt: direct link, hf CLI and curl.
- Browser
- Download file 746 Bytes
-
https://huggingface.co/spaces/ashnhash/UniHunt/resolve/main/src/lib/important-dates-format.ts
- Command line
-
hf download hf://spaces/ashnhash/UniHunt/src/lib/important-dates-format.ts
-
curl -L -o important-dates-format.ts https://huggingface.co/spaces/ashnhash/UniHunt/resolve/main/src/lib/important-dates-format.ts
746 Bytes
| import type { ImportantDateCategory } from "./types"; | |
| /** | |
| * Client-safe labels for important-date categories. Kept separate from | |
| * `important-dates.ts`, which pulls in server-only Brave and model clients. | |
| */ | |
| const CATEGORY_LABELS: Record<ImportantDateCategory, string> = { | |
| application_open: "Applications open", | |
| application_deadline: "Application deadline", | |
| entrance_exam: "Entrance exam / test", | |
| scholarship: "Scholarship", | |
| offer_or_result: "Results / offers", | |
| fee_payment: "Fee payment", | |
| session_start: "Session start", | |
| orientation: "Orientation", | |
| other: "Other date", | |
| }; | |
| export function importantDateCategoryLabel(category: ImportantDateCategory): string { | |
| return CATEGORY_LABELS[category] ?? CATEGORY_LABELS.other; | |
| } | |