feat(theme): add theme toggle component and integrate into sidebar

This commit is contained in:
Mathis HERRIOT
2026-01-20 16:27:24 +01:00
parent a6e34c511e
commit 3b9b73bc4b
3 changed files with 59 additions and 0 deletions

View File

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