mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-03-01 20:17:40 +00:00
16 lines
304 B
JavaScript
Executable File
16 lines
304 B
JavaScript
Executable File
import { clsx } from "clsx"
|
|
import { twMerge } from "tailwind-merge"
|
|
|
|
export function cn(...inputs) {
|
|
return twMerge(clsx(inputs))
|
|
}
|
|
|
|
export function safeJsonParse(value) {
|
|
if (!value || typeof value !== 'string') return null;
|
|
try {
|
|
return JSON.parse(value);
|
|
} catch {
|
|
return null;
|
|
}
|
|
}
|