Download apps/bootstrap-installer/src/lib/utils.ts from SaylorTwift/hermes-agent: direct link, hf CLI and curl.
- Browser
- Download file 402 Bytes
-
https://huggingface.co/SaylorTwift/hermes-agent/resolve/main/apps/bootstrap-installer/src/lib/utils.ts
- Command line
-
hf download hf://SaylorTwift/hermes-agent/apps/bootstrap-installer/src/lib/utils.ts
-
curl -L -o utils.ts https://huggingface.co/SaylorTwift/hermes-agent/resolve/main/apps/bootstrap-installer/src/lib/utils.ts
402 Bytes
| import { type ClassValue, clsx } from 'clsx' | |
| import { twMerge } from 'tailwind-merge' | |
| /* | |
| * cn — Tailwind-aware class merger. Same util the desktop and dashboard | |
| * use. clsx handles conditional classes; twMerge resolves utility | |
| * conflicts so `cn('px-2', condition && 'px-4')` ends up with px-4 only, | |
| * not both. | |
| */ | |
| export function cn(...inputs: ClassValue[]) { | |
| return twMerge(clsx(inputs)) | |
| } | |