mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-26 00:35:40 +00:00
15 lines
269 B
TypeScript
15 lines
269 B
TypeScript
|
'use client'
|
||
|
|
||
|
import {ReactNode} from 'react'
|
||
|
import {ThemeProvider} from 'next-themes'
|
||
|
|
||
|
export function Providers({children}: {
|
||
|
children: ReactNode
|
||
|
}) {
|
||
|
|
||
|
return (
|
||
|
<ThemeProvider attribute="class">
|
||
|
{children}
|
||
|
</ThemeProvider>
|
||
|
)
|
||
|
}
|