import { 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 urlIsActive(urlToCheck: NonNullable, currentUrl: string) { return toUrl(urlToCheck) === currentUrl; } export function toUrl(href: NonNullable) { return typeof href === 'string' ? href : href?.url; }