15 lines
381 B
TypeScript
15 lines
381 B
TypeScript
|
"use client";
|
||
|
|
||
|
import { NextUIProvider } from "@nextui-org/react";
|
||
|
import { ThemeProvider as NextThemesProvider } from "next-themes";
|
||
|
|
||
|
export function Providers({ children }: { children: React.ReactNode }) {
|
||
|
return (
|
||
|
<NextUIProvider>
|
||
|
<NextThemesProvider attribute="class" defaultTheme="dark">
|
||
|
{children}
|
||
|
</NextThemesProvider>
|
||
|
</NextUIProvider>
|
||
|
);
|
||
|
}
|