Spaces:
Sleeping
Sleeping
Download apps/web/lib/utils.ts from quantumsquatan/Adala-ai: direct link, hf CLI and curl.
- Browser
- Download file 385 Bytes
-
https://huggingface.co/spaces/quantumsquatan/Adala-ai/resolve/main/apps/web/lib/utils.ts
- Command line
-
hf download hf://spaces/quantumsquatan/Adala-ai/apps/web/lib/utils.ts
-
curl -L -o utils.ts https://huggingface.co/spaces/quantumsquatan/Adala-ai/resolve/main/apps/web/lib/utils.ts
385 Bytes
| import { clsx, type ClassValue } from "clsx"; | |
| import { twMerge } from "tailwind-merge"; | |
| export function cn(...inputs: ClassValue[]) { | |
| return twMerge(clsx(inputs)); | |
| } | |
| export function isArabic(text: string) { | |
| return /[\u0600-\u06FF]/.test(text); | |
| } | |
| export function formatArticle(article?: string | null) { | |
| return article ? `Article ${article}` : "Article N/A"; | |
| } | |