perplexica/ui/components/theme/Provider.tsx

17 lines
324 B
TypeScript
Raw Normal View History

2024-05-24 10:20:15 +00:00
'use client';
import { ThemeProvider } from 'next-themes';
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
};
export default ThemeProviderComponent;