Add next-themes integration with a ThemeProvider wrapper and a ThemeToggle dropdown (Light / Dark / System) in the sidebar footer. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
11 lines
295 B
TypeScript
11 lines
295 B
TypeScript
"use client"
|
|
|
|
import * 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>
|
|
}
|