feat: setup theme context config

This commit is contained in:
WanQuanXie 2024-05-24 18:20:15 +08:00
parent 79cfd0a722
commit f9664d48e7
4 changed files with 92 additions and 11 deletions

View file

@ -0,0 +1,14 @@
'use client';
import { ThemeProvider } from 'next-themes';
export function ThemeProviderComponent({
children,
}: {
children: React.ReactNode;
}) {
return (
<ThemeProvider attribute="class" enableSystem={false} defaultTheme="dark">
{children}
</ThemeProvider>
);
}