if (typeof window !== 'undefined') { throw new Error('An Expected error occurred') } export default () =>