export function isBrowser(): boolean { return typeof window !== 'undefined' } export function isServer(): boolean { return !isBrowser() }