17 lines
324 B
TypeScript
17 lines
324 B
TypeScript
'use client';
|
|
import { ThemeProvider } from 'next-themes';
|
|
|
|
const ThemeProviderComponent = ({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) => {
|
|
return (
|
|
<ThemeProvider attribute="class" enableSystem={false} defaultTheme="dark">
|
|
{children}
|
|
</ThemeProvider>
|
|
);
|
|
};
|
|
|
|
export default ThemeProviderComponent;
|