{"size": 549, "ext": "js", "max_stars_repo_path": "appTemplates/general/pages/demo/index.js", "max_stars_repo_name": "ibabkov/let_it_code", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "appTemplates/general/pages/demo/index.js", "max_issues_repo_name": "ibabkov/let_it_code", "max_issues_repo_issues_event_min_datetime": "2021-03-10T16:21:46.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-11T12:29:49.000Z", "max_forks_repo_path": "appTemplates/general/pages/demo/index.js", "max_forks_repo_name": "ibabkov/let_it_code", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 3, "max_forks_count": null, "avg_line_length": 22.875, "max_line_length": 74, "alphanum_fraction": 0.6083788707}
import Head from 'next/head'
import Layout from '../../components/layout/layout'
import Demo from '../../components/demo/demo';

export default function DemoPage({ userAgent }) {
  return (
    <Layout>
      <Head>
        <title>
          Demo page
        </title>
      </Head>
      <Demo userAgent={userAgent} />
    </Layout>
  )
}

DemoPage.getInitialProps = async ({ req }) => {
  const userAgent = req ? req.headers['user-agent'] : navigator.userAgent;
  // console.log(pathname, query, asPath, req, res, err);

  return { userAgent }
};
