Spaces:
Paused
Paused
Download OpenReels/web/src/lib/utils.ts from abc1181/perplexica: direct link, hf CLI and curl.
- Browser
- Download file 423 Bytes
-
https://huggingface.co/spaces/abc1181/perplexica/resolve/main/OpenReels/web/src/lib/utils.ts
- Command line
-
hf download hf://spaces/abc1181/perplexica/OpenReels/web/src/lib/utils.ts
-
curl -L -o utils.ts https://huggingface.co/spaces/abc1181/perplexica/resolve/main/OpenReels/web/src/lib/utils.ts
423 Bytes
| import { clsx, type ClassValue } from "clsx" | |
| import { twMerge } from "tailwind-merge" | |
| export function cn(...inputs: ClassValue[]) { | |
| return twMerge(clsx(inputs)) | |
| } | |
| /** Format an archetype slug (e.g. "warm_narrative") to title case ("Warm Narrative") */ | |
| export function formatArchetypeName(name: string): string { | |
| return name | |
| .split(/[-_]/) | |
| .map((w) => w.charAt(0).toUpperCase() + w.slice(1)) | |
| .join(" "); | |
| } | |