jan/web-client/app/_helpers/ThemeWrapper.tsx
James 1f6e897a1a chore: set default theme to light
Signed-off-by: James <james@jan.ai>
2023-09-05 08:10:48 -07:00

17 lines
319 B
TypeScript

"use client";
import { ThemeProvider } from "next-themes";
import { ReactNode } from "react";
type Props = {
children: ReactNode;
};
export const ThemeWrapper: React.FC<Props> = ({ children }) => {
return (
<ThemeProvider enableSystem={false} attribute="class">
{children}
</ThemeProvider>
);
};