2025-01-24 13:04:43 -08:00
|
|
|
import { clsx, type ClassValue } from 'clsx';
|
|
|
|
|
import { twMerge } from 'tailwind-merge';
|
|
|
|
|
|
|
|
|
|
export function cn(...inputs: ClassValue[]) {
|
|
|
|
|
return twMerge(clsx(inputs));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function snakeToTitleCase(snake: string): string {
|
|
|
|
|
return snake
|
|
|
|
|
.split('_')
|
|
|
|
|
.map((word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase())
|
|
|
|
|
.join(' ');
|
|
|
|
|
}
|
2025-02-21 11:29:07 -05:00
|
|
|
|
|
|
|
|
export function patchConsoleLogging() {
|
|
|
|
|
// Intercept console methods
|
2025-03-10 09:51:54 -07:00
|
|
|
return;
|
2025-02-21 11:29:07 -05:00
|
|
|
}
|