mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-28 08:49:42 +02:00
13 lines
544 B
TypeScript
13 lines
544 B
TypeScript
|
|
"use client";
|
||
|
|
|
||
|
|
// Thin wrapper around next-themes so the root (server) layout can mount a theme
|
||
|
|
// provider without pulling client-only code into the server module graph. Dark
|
||
|
|
// is the locked default; the system preference is intentionally not consulted.
|
||
|
|
|
||
|
|
import { ThemeProvider as NextThemesProvider } from "next-themes";
|
||
|
|
import type { ComponentProps } from "react";
|
||
|
|
|
||
|
|
export function ThemeProvider({ children, ...props }: ComponentProps<typeof NextThemesProvider>) {
|
||
|
|
return <NextThemesProvider {...props}>{children}</NextThemesProvider>;
|
||
|
|
}
|