portfolio/app/providers.tsx

15 lines
269 B
TypeScript
Raw Normal View History

2023-07-29 22:40:36 +00:00
'use client'
import {ReactNode} from 'react'
import {ThemeProvider} from 'next-themes'
export function Providers({children}: {
children: ReactNode
}) {
return (
<ThemeProvider attribute="class">
{children}
</ThemeProvider>
)
}