konobangu/packages/design-system/providers/theme.tsx

18 lines
391 B
TypeScript

import type { ThemeProviderProps } from 'next-themes';
import { ThemeProvider as NextThemeProvider } from 'next-themes';
export const ThemeProvider = ({
children,
...properties
}: ThemeProviderProps) => (
<NextThemeProvider
attribute="class"
defaultTheme="system"
enableSystem
disableTransitionOnChange
{...properties}
>
{children}
</NextThemeProvider>
);