portfolio/app/providers.tsx

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>
)
}