@accounter/client
Version:
Accounter client application
13 lines (10 loc) • 373 B
text/typescript
import { clsx, type ClassValue } from 'clsx';
import { twMerge } from 'tailwind-merge';
export function cn(...inputs: ClassValue[]): string {
return twMerge(clsx(inputs));
}
// Helper to detect if text contains RTL characters
export function isRTL(text: string): boolean {
const rtlRegex = /[\u0590-\u05FF\u0600-\u06FF\u0700-\u074F]/;
return rtlRegex.test(text);
}