import * as React from 'react'; import type { AppProps } from 'next/app'; import { CacheProvider, EmotionCache } from '@emotion/react'; import { ThemeProvider, CssBaseline, createTheme } from '@mui/material'; import '@fontsource/roboto/300.css'; import '@fontsource/roboto/400.css'; import '@fontsource/roboto/500.css'; import '@fontsource/roboto/700.css'; import createEmotionCache from '../utils/createEmotionCache'; import lightThemeOptions from '../styles/theme/lightThemeOption'; import '../styles/globals.css'; interface MyAppProps extends AppProps { emotionCache?: EmotionCache; } const clientSideEmotionCache = createEmotionCache(); const lightTheme = createTheme(lightThemeOptions); const MyApp: React.FunctionComponent = (props) => { const { Component, emotionCache = clientSideEmotionCache, pageProps } = props; return ( ); }; export default MyApp;