mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-01-23 18:07:34 +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;
|
|
}
|
|
}
|