portfolio/app/providers.tsx
Ryan Freeman cf6423bbf8
All checks were successful
Build And Publish / BuildAndPublish (push) Successful in 2m22s
Update ThemeButton
2024-09-14 09:55:49 +01:00

15 lines
295 B
TypeScript

'use client'
import {ReactNode} from 'react'
import {ThemeProvider} from 'next-themes'
export function Providers({children}: {
children: ReactNode
}) {
return (
<ThemeProvider attribute="class" disableTransitionOnChange>
{children}
</ThemeProvider>
)
}