mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-10 23:48:09 -05:00
14 lines
318 B
TypeScript
14 lines
318 B
TypeScript
import { type ClassValue, clsx } from "clsx"
|
|
import { twMerge } from "tailwind-merge"
|
|
|
|
export function cn(...inputs: ClassValue[]) {
|
|
return twMerge(clsx(inputs))
|
|
}
|
|
|
|
export const getTimestamp = () => {
|
|
if (typeof window === 'undefined') {
|
|
return Date.now()
|
|
}
|
|
return window.INITIAL_TIMESTAMP || Date.now()
|
|
}
|