export const scrollToTop = () => { return typeof window !== 'undefined' && setTimeout(() => { window.scrollTo(0, 0); }, 500); };