add dark theme provider

This commit is contained in:
Milo Schwartz
2024-10-14 18:26:07 -04:00
parent 23b98960cc
commit bd4b714ab8
5 changed files with 33 additions and 7 deletions

View File

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