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