getPageData = (pageData = {}) => {
  if (!isBrowser) return pageData
  const { title, referrer } = document
  const { location, innerWidth, innerHeight } = window
  const { hash, search } = location
  const url = currentUrl(search)
  const page = {
    title: title,
    url: url,
    path: urlPath(url),
    hash: hash,
    search: search,
    width: innerWidth,
    height: innerHeight,
  }
  if (referrer && referrer !== '') {
    page.referrer = referrer
  }

  return {
    ...page,
    /* .page() user overrrides */
    ...pageData
  }
}
Get information about current page
@typedef {Function} getPageData
@param  {PageData} [pageData = {}] - Page data overides
@return {PageData} resolved page data