theme toggle

This commit is contained in:
Philipinho
2023-08-22 20:30:51 +01:00
parent f11f9f6210
commit 0fd7538a99
13 changed files with 503 additions and 4416 deletions

View File

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