Spaces:
Runtime error
Runtime error
Download src/lib/utils.ts from Ali-Developments/COURTRIX: direct link, hf CLI and curl.
- Browser
- Download file 425 Bytes
-
https://huggingface.co/spaces/Ali-Developments/COURTRIX/resolve/main/src/lib/utils.ts
- Command line
-
hf download hf://spaces/Ali-Developments/COURTRIX/src/lib/utils.ts
-
curl -L -o utils.ts https://huggingface.co/spaces/Ali-Developments/COURTRIX/resolve/main/src/lib/utils.ts
425 Bytes
| import { clsx, type ClassValue } from "clsx"; | |
| import { twMerge } from "tailwind-merge"; | |
| export function cn(...inputs: ClassValue[]) { | |
| return twMerge(clsx(inputs)); | |
| } | |
| export function normalizeEmail(value: string) { | |
| return value.trim().toLowerCase(); | |
| } | |
| export function trimOrUndefined(value: string | null | undefined) { | |
| const trimmed = value?.trim(); | |
| if (!trimmed) { | |
| return undefined; | |
| } | |
| return trimmed; | |
| } | |