2024-05-24 10:20:15 +00:00
|
|
|
'use client';
|
|
|
|
import { ThemeProvider } from 'next-themes';
|
|
|
|
|
2024-05-31 05:32:00 +00:00
|
|
|
const ThemeProviderComponent = ({
|
2024-05-24 10:20:15 +00:00
|
|
|
children,
|
|
|
|
}: {
|
|
|
|
children: React.ReactNode;
|
2024-05-30 16:08:37 +00:00
|
|
|
}) => {
|
2024-05-24 10:20:15 +00:00
|
|
|
return (
|
|
|
|
<ThemeProvider attribute="class" enableSystem={false} defaultTheme="dark">
|
|
|
|
{children}
|
|
|
|
</ThemeProvider>
|
|
|
|
);
|
2024-05-30 16:08:37 +00:00
|
|
|
};
|
2024-05-31 05:32:00 +00:00
|
|
|
|
|
|
|
export default ThemeProviderComponent;
|