mirror of
https://github.com/theoludwig/theoludwig.git
synced 2024-11-05 13:01:30 +01:00
Théo LUDWIG
6b29ce9b15
Improvements: - Hide switch theme input (ugly little white square) - i18n without subpath (e.g: /fr or /en), same url whatever the locale used
16 lines
316 B
TypeScript
16 lines
316 B
TypeScript
'use client'
|
|
|
|
import { ThemeProvider } from 'next-themes'
|
|
|
|
type ProvidersProps = React.PropsWithChildren
|
|
|
|
export const Providers = (props: ProvidersProps): JSX.Element => {
|
|
const { children } = props
|
|
|
|
return (
|
|
<ThemeProvider attribute='class' defaultTheme='dark'>
|
|
{children}
|
|
</ThemeProvider>
|
|
)
|
|
}
|