export const IS_BROWSER = typeof window !== 'undefined' && typeof window.document !== 'undefined'; export const WINDOW = IS_BROWSER ? window : {};