Files
nutriscan/app/providers.tsx
T
2024-11-28 12:37:47 -03:00

19 lines
430 B
TypeScript

'use client'
import { ThemeProvider as NextThemesProvider } from 'next-themes'
import { ReactNode } from 'react'
interface ProvidersProps {
children: ReactNode
}
export function ThemeProvider({ children }: ProvidersProps) {
return (
<NextThemesProvider
attribute="class"
defaultTheme="system"
enableSystem
>
{children}
</NextThemesProvider>
)
}