Files
home-lab/BoilerPlate/resources/js/lib/utils.ts
T
Shaun Collins 371fff18c0 Init
2026-02-23 13:17:51 +00:00

12 lines
356 B
TypeScript

import type { InertiaLinkProps } from '@inertiajs/vue3';
import { clsx, type ClassValue } from 'clsx';
import { twMerge } from 'tailwind-merge';
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
export function toUrl(href: NonNullable<InertiaLinkProps['href']>) {
return typeof href === 'string' ? href : href?.url;
}