svrjs-nextjs-website/components/shared/providers/themeprovider.tsx

10 lines
332 B
TypeScript
Raw Normal View History

"use client";
2024-06-15 14:55:33 +02:00
import * as React from "react";
import { ThemeProvider as NextThemesProvider } from "next-themes";
import { type ThemeProviderProps } from "next-themes/dist/types";
2024-06-15 14:55:33 +02:00
export function ThemeProvider({ children, ...props }: ThemeProviderProps) {
return <NextThemesProvider {...props}>{children}</NextThemesProvider>;
2024-06-15 14:55:33 +02:00
}