import App, { Container } from 'next/app'; import Head from 'next/head'; import React from 'react'; import { isMobile } from '../utils/mobile'; export default class PlainBudgetApp extends App { static async getInitialProps ({ Component, ctx }) { const { req } = ctx; const isMobileDevice = isMobile(req); ctx.isMobile = isMobileDevice; let pageProps = {}; if (Component.getInitialProps) { pageProps = await Component.getInitialProps(ctx); } return { pageProps }; } render () { const { Component, pageProps } = this.props; return ( plainbudget ); } }