first commit
This commit is contained in:
commit
e687b4437b
418 files changed
+33577
No files matched your search
@@ -0,0 +1,14 @@
|
||||
import type { LinkComponentBaseProps } from '@inertiajs/core';
|
||||
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(
|
||||
href: NonNullable<LinkComponentBaseProps['href']>,
|
||||
): string {
|
||||
return typeof href === 'string' ? href : href.url;
|
||||
}
|
||||
Reference in new issue
Block a user