website-2/pages/_app.tsx

16 lines
322 B
TypeScript
Raw Normal View History

2022-04-10 20:15:15 +10:00
import '../styles/globals.css'
import type { AppProps } from 'next/app'
import {ThemeProvider} from 'next-themes'
2022-04-10 20:15:15 +10:00
function MyApp({ Component, pageProps }: AppProps) {
return (
<>
<ThemeProvider attribute="class">
<Component {...pageProps} />
</ThemeProvider>
</>
)
2022-04-10 20:15:15 +10:00
}
export default MyApp