mirror of
https://github.com/theoludwig/theoludwig.git
synced 2024-11-05 13:01:30 +01:00
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>
|
||
|
)
|
||
|
}
|