您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

_app.tsx 413B

12345678910111213141516171819
  1. import useGtag from 'hooks/useGtag'
  2. import { AppProps } from 'next/app'
  3. import { globalStyles } from 'styles'
  4. import { Provider } from 'next-auth/client'
  5. import 'styles/globals.css'
  6. function MyApp({ Component, pageProps }: AppProps): JSX.Element {
  7. globalStyles()
  8. useGtag()
  9. return (
  10. <Provider session={pageProps.session}>
  11. <Component {...pageProps} />
  12. </Provider>
  13. )
  14. }
  15. export default MyApp