feat: change main layout with added theme provider

This commit is contained in:
Bart van der Braak 2023-06-14 03:50:07 +02:00
parent 623b64cfee
commit 959ebcf37f
2 changed files with 82 additions and 15 deletions

View file

@ -0,0 +1,9 @@
"use client";
import * as React from "react";
import { ThemeProvider as NextThemesProvider } from "next-themes";
import { ThemeProviderProps } from "next-themes/dist/types";
export function ThemeProvider({ children, ...props }: ThemeProviderProps) {
return <NextThemesProvider {...props}>{children}</NextThemesProvider>;
}