export const isServer = () => { return typeof window === 'undefined' || !window; }; export const getOS = (): 'web' | 'ios' | 'android' => { return 'web'; }; const DEFAULT_WIDTH = 390; const DEFAULT_HEIGHT = 0; export const getDimensions = (): { width: number; height: number } => { // Use consistent default width to avoid hydration mismatches const width = isServer() ? DEFAULT_WIDTH : window?.innerWidth || DEFAULT_WIDTH; const height = isServer() ? DEFAULT_HEIGHT : window?.innerHeight || DEFAULT_HEIGHT; return { width: width, height: height }; }; export const getOSVersion = (): number => { return 0; };