import React, { Component } from 'react' import PropTypes from 'prop-types' import ThemeWrapper from '../components/ThemeWrapper' import getTheme from 'react-uwp/styles/getTheme' import { Button, ColorPicker, DatePicker, ProgressRing } from 'react-uwp' class Index extends Component { static async getInitialProps ({ req }) { let userAgent if (process.browser) { userAgent = navigator.userAgent } else { userAgent = req.headers['user-agent'] } return { userAgent } } static contextTypes = { theme: PropTypes.object } render () { const { userAgent } = this.props return (

{userAgent.slice(12)}...

) } } export default Index