website-2/pages/_app.tsx

16 lines
322 B
TypeScript

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