Download src/lib/utils.ts from HonzaH/Letschat: direct link, hf CLI and curl.
- Browser
- Download file 334 Bytes
-
https://huggingface.co/spaces/HonzaH/Letschat/resolve/main/src/lib/utils.ts
- Command line
-
hf download hf://spaces/HonzaH/Letschat/src/lib/utils.ts
-
curl -L -o utils.ts https://huggingface.co/spaces/HonzaH/Letschat/resolve/main/src/lib/utils.ts
334 Bytes
| import { clsx, type ClassValue } from "clsx" | |
| import { twMerge } from "tailwind-merge" | |
| export function cn(...inputs: ClassValue[]) { | |
| return twMerge(clsx(inputs)) | |
| } | |
| export function formatTime(date: Date): string { | |
| return new Intl.DateTimeFormat('cs-CZ', { | |
| hour: '2-digit', | |
| minute: '2-digit' | |
| }).format(date) | |
| } |