website-2/pages/_app.tsx

14 lines
327 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" defaultTheme="dark">
<Component {...pageProps} />
</ThemeProvider>
)
2022-04-10 20:15:15 +10:00
}
export default MyApp