Updated README.md from a detailed OllaHub project description to the standard Next.js getting started template, likely to initialize or reset the project as a Next.js application.
21 lines
403 B
TypeScript
21 lines
403 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
|
|
attribute="class"
|
|
defaultTheme="system"
|
|
enableSystem
|
|
{...props}
|
|
>
|
|
{children}
|
|
</NextThemesProvider>
|
|
);
|
|
}
|