Spaces:
Sleeping
Sleeping
Download resources/js/lib/utils.ts from wepee/CAPS04-FE-REFACTOR: direct link, hf CLI and curl.
- Browser
- Download file 383 Bytes
-
https://huggingface.co/spaces/wepee/CAPS04-FE-REFACTOR/resolve/refs%2Fpr%2F1/resources/js/lib/utils.ts
- Command line
-
hf download hf://spaces/wepee/CAPS04-FE-REFACTOR@refs/pr/1/resources/js/lib/utils.ts
-
curl -L -o utils.ts https://huggingface.co/spaces/wepee/CAPS04-FE-REFACTOR/resolve/refs%2Fpr%2F1/resources/js/lib/utils.ts
383 Bytes
| import type { InertiaLinkProps } from '@inertiajs/react'; | |
| import { clsx } from 'clsx'; | |
| import type { ClassValue } from 'clsx'; | |
| import { twMerge } from 'tailwind-merge'; | |
| export function cn(...inputs: ClassValue[]) { | |
| return twMerge(clsx(inputs)); | |
| } | |
| export function toUrl(url: NonNullable<InertiaLinkProps['href']>): string { | |
| return typeof url === 'string' ? url : url.url; | |
| } | |