File size: 381 Bytes
b9515a8
 
 
 
 
9f43bd2
 
 
 
 
 
 
 
 
 
 
b9515a8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"use client";

import * as React from "react";
import { ThemeProvider as NextThemesProvider } from "next-themes";

export function ThemeProvider({ children }: React.PropsWithChildren<{}>) {
  return (
    <NextThemesProvider
      attribute="class"
      enableSystem
      disableTransitionOnChange
      storageKey="theme"
    >
      {children}
    </NextThemesProvider>
  );
}